Guardaserie image fix

This commit is contained in:
antonydp 2022-11-02 15:42:37 +01:00 committed by GitHub
parent 64101f560e
commit 0856de2f6b
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,5 +1,5 @@
// use an integer for version numbers
version = 3
version = 2
cloudstream {

View File

@ -75,7 +75,7 @@ class GuardaSerieProvider : MainAPI() {
val description = document.selectFirst("div.tv_info_right")?.textNodes()?.joinToString("")
val rating = document.selectFirst("span.post-ratings")?.text()
var year = document.select("div.tv_info_list > ul").find { it.text().contains("Anno") }?.text()?.substringBefore("-")?.filter { it.isDigit() }?.toIntOrNull()
val poster = fixUrl(document.selectFirst("#cover")!!.attr("src"))
val poster = fixUrl(document.selectFirst("#cover")!!.attr("src")).replace("/141x200-0-85/", "/60x85-0-85/")
val episodeList = document.select("div.tab-content > div").mapIndexed { season, data ->
data.select("li").mapIndexed { epNum, epData ->