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 {
|
||||
val sourcesData = parseJson<sourcesJSON>(app.get(data).text).data
|
||||
sourcesData?.playUrls?.apmap {
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
"${this.name} ${it.name} - ${sourcesData.name}",
|
||||
it.url.toString(),
|
||||
"$mainUrl/",
|
||||
Qualities.Unknown.value,
|
||||
isM3u8 = true,
|
||||
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(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
"${this.name} ${it.name} - ${sourcesData.name}",
|
||||
it.url.toString(),
|
||||
"$mainUrl/",
|
||||
Qualities.Unknown.value,
|
||||
isM3u8 = true,
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue