From 28efa654045d74277efc5b3ec28484b065424402 Mon Sep 17 00:00:00 2001 From: hexated Date: Wed, 14 Sep 2022 11:05:26 +0700 Subject: [PATCH] changed YomoviesProvider domain --- Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt | 5 ++--- YomoviesProvider/build.gradle.kts | 2 +- .../src/main/kotlin/com/hexated/YomoviesProvider.kt | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt index ddadfe03..5f79e045 100644 --- a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt +++ b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt @@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonProperty import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.LoadResponse.Companion.addActors import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer -import com.lagradost.cloudstream3.extractors.StreamSB import com.lagradost.cloudstream3.mvvm.safeApiCall import com.lagradost.cloudstream3.utils.* import org.jsoup.nodes.Element @@ -165,9 +164,9 @@ class Movierulzhd : MainAPI() { val name = "Sbflix" val regexID = - Regex("(embed-[a-zA-Z0-9]{0,8}[a-zA-Z0-9_-]+|\\/e\\/[a-zA-Z0-9]{0,8}[a-zA-Z0-9_-]+)") + Regex("(embed-[a-zA-Z0-9]{0,8}[a-zA-Z0-9_-]+|/e/[a-zA-Z0-9]{0,8}[a-zA-Z0-9_-]+)") val id = regexID.findAll(url).map { - it.value.replace(Regex("(embed-|\\/e\\/)"), "") + it.value.replace(Regex("(embed-|/e/)"), "") }.first() val master = "$mainUrl/sources48/" + bytesToHex("||$id||||streamsb".toByteArray()) + "/" val headers = mapOf( diff --git a/YomoviesProvider/build.gradle.kts b/YomoviesProvider/build.gradle.kts index e846c28c..d207c689 100644 --- a/YomoviesProvider/build.gradle.kts +++ b/YomoviesProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 4 +version = 5 cloudstream { diff --git a/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt b/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt index 6dc8aed6..8ffe3758 100644 --- a/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt +++ b/YomoviesProvider/src/main/kotlin/com/hexated/YomoviesProvider.kt @@ -9,7 +9,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor import org.jsoup.nodes.Element class YomoviesProvider : MainAPI() { - override var mainUrl = "https://yomovies.cloud" + override var mainUrl = "https://yomovies.red" override var name = "Yomovies" override val hasMainPage = true override var lang = "hi"