Update Aniworld.kt

This commit is contained in:
Hexated 2023-06-16 00:38:58 +07:00 committed by GitHub
parent eae807a4f3
commit 7994801ead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ class Aniworld : MainAPI() {
document.select("li:contains(Schauspieler:) ul li a").map { it.select("span").text() } document.select("li:contains(Schauspieler:) ul li a").map { it.select("span").text() }
val episodes = mutableListOf<Episode>() val episodes = mutableListOf<Episode>()
document.select("div#stream > ul:first-child li").apmap { ele -> document.select("div#stream > ul:first-child li").map { ele ->
val page = ele.selectFirst("a") val page = ele.selectFirst("a")
val epsDocument = app.get(fixUrl(page?.attr("href") ?: return@apmap)).document val epsDocument = app.get(fixUrl(page?.attr("href") ?: return@apmap)).document
epsDocument.select("div#stream > ul:nth-child(4) li").mapNotNull { eps -> epsDocument.select("div#stream > ul:nth-child(4) li").mapNotNull { eps ->