mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Update 9GoalProvider.kt
This commit is contained in:
parent
0d583bf278
commit
1fc84a597a
1 changed files with 31 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue