Revert "Filesim (#1597)" (#1599)

This reverts commit ba33f761ed104080329f570e1e80aea3ff41f6bc.
This commit is contained in:
firelight
2025-03-08 01:04:18 +00:00
committed by GitHub
parent a064fddd96
commit 67d49bcb06

View File

@ -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")
)
)
}
}
}
}