changed YomoviesProvider domain

This commit is contained in:
hexated 2022-09-14 11:05:26 +07:00
parent 3a834c158c
commit 6182745070
3 changed files with 4 additions and 5 deletions

View file

@ -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(

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 4
version = 5
cloudstream {

View file

@ -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"