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 episodes = document.select("div.bixbox.bxcl > ul > li").map {
val name = it.selectFirst("a")?.text()?.trim()
val episode =
it.selectFirst("a")?.text()?.trim()?.replace("Episode", "")?.trim()?.toIntOrNull()
val link = it.selectFirst("a")!!.attr("href")
Episode(link, name = name, episode = episode)
Episode(link, episode = episode)
}.reversed()
return newAnimeLoadResponse(title, url, getType(type)) {