Update Aniworld.kt

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

View file

@ -96,7 +96,7 @@ class Aniworld : MainAPI() {
val episodes = mutableListOf<Episode>()
document.select("div#stream > ul:first-child li").map { ele ->
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@map)).document
epsDocument.select("div#stream > ul:nth-child(4) li").mapNotNull { eps ->
episodes.add(
Episode(