From 457bcde8159eae1ab6910ac05fb947b9bf6999c5 Mon Sep 17 00:00:00 2001 From: hexated Date: Thu, 15 Sep 2022 17:34:28 +0700 Subject: [PATCH] fixed Movierulzhd --- Movierulzhd/build.gradle.kts | 2 +- Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Movierulzhd/build.gradle.kts b/Movierulzhd/build.gradle.kts index 66a901c4..871a2f70 100644 --- a/Movierulzhd/build.gradle.kts +++ b/Movierulzhd/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 7 +version = 8 cloudstream { diff --git a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt index 48f6e188..0f857993 100644 --- a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt +++ b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt @@ -68,6 +68,7 @@ class Movierulzhd : MainAPI() { return newMovieSearchResponse(title, href, TvType.Movie) { this.posterUrl = posterUrl this.quality = quality + posterHeaders = interceptor.getCookieHeaders(url).toMap() } } @@ -83,6 +84,7 @@ class Movierulzhd : MainAPI() { val posterUrl = it.selectFirst("img")!!.attr("src").toString() newMovieSearchResponse(title, href, TvType.TvSeries) { this.posterUrl = posterUrl + posterHeaders = interceptor.getCookieHeaders(url).toMap() } } } @@ -115,6 +117,7 @@ class Movierulzhd : MainAPI() { val recPosterUrl = it.selectFirst("img")?.attr("src").toString() newTvSeriesSearchResponse(recName, recHref, TvType.TvSeries) { this.posterUrl = recPosterUrl + posterHeaders = interceptor.getCookieHeaders(url).toMap() } } @@ -144,6 +147,7 @@ class Movierulzhd : MainAPI() { addActors(actors) this.recommendations = recommendations addTrailer(trailer) + posterHeaders = interceptor.getCookieHeaders(url).toMap() } } else { newMovieLoadResponse(title, url, TvType.Movie, url) { @@ -155,6 +159,7 @@ class Movierulzhd : MainAPI() { addActors(actors) this.recommendations = recommendations addTrailer(trailer) + posterHeaders = interceptor.getCookieHeaders(url).toMap() } } } @@ -203,7 +208,7 @@ class Movierulzhd : MainAPI() { callback: (ExtractorLink) -> Unit ): Boolean { - val document = app.get(data, interceptor = interceptor).document + val document = app.get(data).document val id = document.select("meta#dooplay-ajax-counter").attr("data-postid") val type = if (data.contains("/movies/")) "movie" else "tv"