Merge pull request #5 from BholeyKaBhakt/master

This commit is contained in:
Deepak Patil 2022-10-01 01:34:19 +05:30 committed by GitHub
commit 4c0fd2d936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -41,7 +41,7 @@ class StreamBlastersProvider : MainAPI() { // all providers must be an instance
} }
private fun Element.toSearchResult(): SearchResponse? { private fun Element.toSearchResult(): SearchResponse? {
val title = this.selectFirst("a")?.text()?.trim() ?: return null val title = this.selectFirst("img")?.attr("alt")?.trim() ?: return null
val href = fixUrl(this.selectFirst("a")?.attr("href").toString()) val href = fixUrl(this.selectFirst("a")?.attr("href").toString())
val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("data-src")) val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("data-src"))
val quality = getQualityFromString(this.select("span.quality").text()) val quality = getQualityFromString(this.select("span.quality").text())