Fixed Vidguard.kt

This commit is contained in:
b4byhuey 2024-04-26 02:52:45 +08:00 committed by GitHub
parent 41c16371fb
commit 84edbacab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 10 deletions

View File

@ -27,16 +27,8 @@ open class Vidguardto : ExtractorApi() {
subtitleCallback: (SubtitleFile) -> Unit,
callback: (ExtractorLink) -> Unit
) {
val client = OkHttpClient()
val request = Request.Builder()
.url(url)
.build()
val response = client.newCall(request).execute()
val result = Jsoup.parse(response.body.string())
val resc = result.select("script:containsData(eval)").firstOrNull()?.data()
val res = app.get(url)
val resc = res.document.select("script:containsData(eval)").firstOrNull()?.data()
resc?.let {
val jsonStr2 = AppUtils.parseJson<SvgObject>(runJS2(it))
val watchlink = sigDecode(jsonStr2.stream)