mirror of
https://github.com/recloudstream/cloudstream.git
synced 2025-05-17 11:15:54 +08:00
This reverts commit ba33f761ed104080329f570e1e80aea3ff41f6bc.
This commit is contained in:
@ -4,7 +4,6 @@ import com.lagradost.cloudstream3.SubtitleFile
|
||||
import com.lagradost.cloudstream3.app
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
import com.lagradost.cloudstream3.utils.M3u8Helper.Companion.generateM3u8
|
||||
import org.json.JSONArray
|
||||
|
||||
class Guccihide : Filesim() {
|
||||
override val name = "Guccihide"
|
||||
@ -100,20 +99,6 @@ open class Filesim : ExtractorApi() {
|
||||
m3u8 ?: return,
|
||||
mainUrl
|
||||
).forEach(callback)
|
||||
|
||||
val tracksJson = Regex("tracks:\\s*\\[(.*?)]", RegexOption.DOT_MATCHES_ALL).find(script)?.groupValues?.getOrNull(1) ?: return
|
||||
val tracksArray = JSONArray("[$tracksJson]")
|
||||
|
||||
for (i in 0 until tracksArray.length()) {
|
||||
val track = tracksArray.getJSONObject(i)
|
||||
if (track.optString("kind") == "captions") {
|
||||
subtitleCallback(
|
||||
SubtitleFile(
|
||||
track.optString("label"),
|
||||
track.optString("file")
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user