mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
ffs mfs has a broke domain, fix ninegoal (#57)
Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
parent
e9d0a83d80
commit
8bf7b6d22c
2 changed files with 32 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
description = ""
|
description = ""
|
||||||
|
|
|
@ -115,16 +115,38 @@ class NineGoal : MainAPI() {
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val sourcesData = parseJson<sourcesJSON>(app.get(data).text).data
|
val sourcesData = parseJson<sourcesJSON>(app.get(data).text).data
|
||||||
sourcesData?.playUrls?.apmap {
|
sourcesData?.playUrls?.apmap {
|
||||||
callback.invoke(
|
val brokenDomain = "canyou.letmestreamyou.net"
|
||||||
ExtractorLink(
|
if(it.url.toString().startsWith("https://$brokenDomain")) {
|
||||||
this.name,
|
mapOf(
|
||||||
"${this.name} ${it.name} - ${sourcesData.name}",
|
"smoothlikebutterstream" to "playing.smoothlikebutterstream.com",
|
||||||
it.url.toString(),
|
"tunnelcdnsw" to "playing.tunnelcdnsw.net",
|
||||||
"$mainUrl/",
|
"goforfreedomwme" to "playing.goforfreedomwme.net",
|
||||||
Qualities.Unknown.value,
|
"gameon" to "turnthe.gameon.tel",
|
||||||
isM3u8 = true,
|
"whydontyoustreamwme" to "playing.whydontyoustreamwme.com"
|
||||||
|
).apmap { (name, value) ->
|
||||||
|
callback.invoke(
|
||||||
|
ExtractorLink(
|
||||||
|
this.name,
|
||||||
|
"${this.name} ${it.name} - ${name}",
|
||||||
|
it.url.toString().replace(brokenDomain, value),
|
||||||
|
"$mainUrl/",
|
||||||
|
Qualities.Unknown.value,
|
||||||
|
isM3u8 = true,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
callback.invoke(
|
||||||
|
ExtractorLink(
|
||||||
|
this.name,
|
||||||
|
"${this.name} ${it.name} - ${sourcesData.name}",
|
||||||
|
it.url.toString(),
|
||||||
|
"$mainUrl/",
|
||||||
|
Qualities.Unknown.value,
|
||||||
|
isM3u8 = true,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue