Update 9GoalProvider.kt

This commit is contained in:
Zaw 2022-11-27 16:42:22 +03:00
parent 0d583bf278
commit 1fc84a597a

View file

@ -115,6 +115,27 @@ 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 {
val brokenDomain = "canyou.letmestreamyou.net"
if(it.url.toString().startsWith("https://$brokenDomain")) {
mapOf(
"smoothlikebutterstream" to "playing.smoothlikebutterstream.com",
"tunnelcdnsw" to "playing.tunnelcdnsw.net",
"goforfreedomwme" to "playing.goforfreedomwme.net",
"gameon" to "turnthe.gameon.tel",
"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( callback.invoke(
ExtractorLink( ExtractorLink(
this.name, this.name,
@ -126,6 +147,7 @@ class NineGoal : MainAPI() {
) )
) )
} }
}
return true return true
} }
} }