Compare commits

..

3 commits

Author SHA1 Message Date
b4byhuey
cb49762230
Update Vidguard.kt 2024-04-26 02:54:44 +08:00
b4byhuey
24c4f814e8
Update Vidguard.kt 2024-04-26 02:53:49 +08:00
b4byhuey
84edbacab3
Fixed Vidguard.kt 2024-04-26 02:52:45 +08:00

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)