ffs mfs has a broke domain, fix ninegoal (#57)

Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
Zaw 2022-11-27 16:57:40 +03:00 committed by GitHub
parent e9d0a83d80
commit 8bf7b6d22c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 10 deletions

View file

@ -1,4 +1,4 @@
version = 2 version = 3
cloudstream { cloudstream {
description = "" description = ""

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
} }
} }