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
1 changed files with 1 additions and 1 deletions

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(