diff --git a/Movierulzhd/build.gradle.kts b/Movierulzhd/build.gradle.kts index d1e94fc7..30de651a 100644 --- a/Movierulzhd/build.gradle.kts +++ b/Movierulzhd/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 45 +version = 46 cloudstream { diff --git a/Movierulzhd/src/main/kotlin/com/hexated/Hdmovie2.kt b/Movierulzhd/src/main/kotlin/com/hexated/Hdmovie2.kt index 7151a89f..67a80264 100644 --- a/Movierulzhd/src/main/kotlin/com/hexated/Hdmovie2.kt +++ b/Movierulzhd/src/main/kotlin/com/hexated/Hdmovie2.kt @@ -30,11 +30,11 @@ class Hdmovie2 : Movierulzhd() { ): Boolean { if (data.startsWith("{")) { val loadData = tryParseJson(data) - val source = app.get( - url = "$directUrl/wp-json/dooplayer/v2/${loadData?.post}/${loadData?.type}/${loadData?.nume}", - referer = data, - headers = mapOf("X-Requested-With" to "XMLHttpRequest") - ).parsed().embed_url.getIframe() + val source = app.post( + url = "$directUrl/wp-admin/admin-ajax.php", data = mapOf( + "action" to "doo_player_ajax", "post" to "${loadData?.post}", "nume" to "${loadData?.nume}", "type" to "${loadData?.type}" + ), referer = data, headers = mapOf("Accept" to "*/*", "X-Requested-With" to "XMLHttpRequest" + )).parsed().embed_url.getIframe() if (!source.contains("youtube")) loadExtractor( source, "$directUrl/",