fix StreamBlasters properly

This commit is contained in:
darkdemon 2022-10-10 13:55:09 +05:30
parent 6cd029ecd4
commit 915e3fe507
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
version = 2 version = 3
cloudstream { cloudstream {

View file

@ -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