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 {
|
||||
|
|
|
@ -152,8 +152,8 @@ class StreamBlastersProvider : MainAPI() { // all providers must be an instance
|
|||
referer = data,
|
||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
||||
).parsed<ResponseHash>().embed_url
|
||||
val source = Jsoup.parse(response).select("iframe").attr("src")
|
||||
loadExtractor(httpsify(source), data, subtitleCallback, callback)
|
||||
val source = if(response.contains("iframe")) Jsoup.parse(response).select("iframe").attr("src") else response
|
||||
loadExtractor(source, data, subtitleCallback, callback)
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue