fixed episode kuronime

This commit is contained in:
hexated 2022-11-24 20:47:02 +07:00
parent daec96608f
commit 58ff720cae

View file

@ -134,8 +134,7 @@ class KuronimeProvider : MainAPI() {
val description = document.select("span.const > p").text() val description = document.select("span.const > p").text()
val episodes = document.select("div.bixbox.bxcl > ul > li").map { val episodes = document.select("div.bixbox.bxcl > ul > li").map {
val episode = val episode = it.selectFirst("a")?.text()?.trim()?.replace("Episode", "")?.trim()?.toIntOrNull()
it.selectFirst("a")?.text()?.trim()?.replace("Episode", "")?.trim()?.toIntOrNull()
val link = it.selectFirst("a")!!.attr("href") val link = it.selectFirst("a")!!.attr("href")
Episode(link, episode = episode) Episode(link, episode = episode)
}.reversed() }.reversed()