mirror of
https://github.com/daarkdemon/cs-darkdemon-extensions.git
synced 2024-08-14 23:57:20 +00:00
fix streamblaster title
This commit is contained in:
parent
cd8daa51fe
commit
dc1f1973c2
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue