it.animeworld: fix slow anime details fetching

This commit is contained in:
jmir1
2022-11-18 21:29:14 +01:00
parent 3fb3d4e2b1
commit f61d9e4b80
2 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'ANIMEWORLD.tv'
pkgNameSuffix = 'it.animeworld'
extClass = '.ANIMEWORLD'
extVersionCode = 14
extVersionCode = 15
libVersion = '13'
}

View File

@ -177,10 +177,11 @@ class ANIMEWORLD : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
val anime = SAnime.create()
anime.thumbnail_url = document.select("div.thumb img").first().attr("src")
anime.title = document.select("div.c1 h2.title").text()
anime.genre = document.select("dd:has(a[href*=language]) a, dd:has(a[href*=genre]) a").joinToString(", ") { it.text() }
val dl = document.select("div.info dl")
anime.genre = dl.select("dd:has(a[href*=language]) a, dd:has(a[href*=genre]) a").joinToString(", ") { it.text() }
anime.description = document.select("div.desc").text()
anime.author = document.select("dd:has(a[href*=studio]) a").joinToString(", ") { it.text() }
anime.status = parseStatus(document.select("dd:has(a[href*=status]) a").text().replace("Status: ", ""))
anime.author = dl.select("dd:has(a[href*=studio]) a").joinToString(", ") { it.text() }
anime.status = parseStatus(dl.select("dd:has(a[href*=status]) a").text().replace("Status: ", ""))
return anime
}