Update Vidguard.kt

This commit is contained in:
b4byhuey 2024-04-26 02:54:44 +08:00 committed by GitHub
parent 24c4f814e8
commit cb49762230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ open class Vidguardto : ExtractorApi() {
subtitleCallback: (SubtitleFile) -> Unit, subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit callback: (ExtractorLink) -> Unit
) { ) {
val res = app.get(url) val res = app.get(url)
val resc = res.document.select("script:containsData(eval)").firstOrNull()?.data() val resc = res.document.select("script:containsData(eval)").firstOrNull()?.data()
resc?.let { resc?.let {
val jsonStr2 = AppUtils.parseJson<SvgObject>(runJS2(it)) val jsonStr2 = AppUtils.parseJson<SvgObject>(runJS2(it))