fixed episode kuronime

This commit is contained in:
hexated 2022-11-24 20:46:39 +07:00
parent 79865a9822
commit daec96608f

View file

@ -134,11 +134,10 @@ 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 name = it.selectFirst("a")?.text()?.trim()
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, name = name, episode = episode) Episode(link, episode = episode)
}.reversed() }.reversed()
return newAnimeLoadResponse(title, url, getType(type)) { return newAnimeLoadResponse(title, url, getType(type)) {