fix streamblaster title

This commit is contained in:
bholeykabhakt 2022-09-26 20:59:41 +05:30
parent cd8daa51fe
commit dc1f1973c2
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())