mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Compare commits
No commits in common. "cb4976223045131ff26ac2db2918fbfd5e79d3a7" and "41c16371fb4f0e1c7c177c0b2e6703344e2755a3" have entirely different histories.
cb49762230
...
41c16371fb
1 changed files with 10 additions and 2 deletions
|
@ -27,8 +27,16 @@ open class Vidguardto : ExtractorApi() {
|
|||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
) {
|
||||
val res = app.get(url)
|
||||
val resc = res.document.select("script:containsData(eval)").firstOrNull()?.data()
|
||||
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()
|
||||
|
||||
resc?.let {
|
||||
val jsonStr2 = AppUtils.parseJson<SvgObject>(runJS2(it))
|
||||
val watchlink = sigDecode(jsonStr2.stream)
|
||||
|
|
Loading…
Reference in a new issue