mirror of
https://github.com/daarkdemon/cs-darkdemon-extensions.git
synced 2024-08-14 23:57:20 +00:00
fix StreamBlasters properly
This commit is contained in:
parent
6cd029ecd4
commit
915e3fe507
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -152,8 +152,8 @@ class StreamBlastersProvider : MainAPI() { // all providers must be an instance
|
||||||
referer = data,
|
referer = data,
|
||||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
||||||
).parsed<ResponseHash>().embed_url
|
).parsed<ResponseHash>().embed_url
|
||||||
val source = Jsoup.parse(response).select("iframe").attr("src")
|
val source = if(response.contains("iframe")) Jsoup.parse(response).select("iframe").attr("src") else response
|
||||||
loadExtractor(httpsify(source), data, subtitleCallback, callback)
|
loadExtractor(source, data, subtitleCallback, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue