mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Compare commits
3 commits
41c16371fb
...
cb49762230
Author | SHA1 | Date | |
---|---|---|---|
|
cb49762230 | ||
|
24c4f814e8 | ||
|
84edbacab3 |
1 changed files with 2 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue