From ace086ee8c09d35a83b0dc14381ddab1a8ad5588 Mon Sep 17 00:00:00 2001 From: Danny Creations Date: Wed, 1 Nov 2023 07:17:41 +0700 Subject: [PATCH] fix(id/oploverz): infinite scolling --- .../animeextension/id/oploverz/Oploverz.kt | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/id/oploverz/src/eu/kanade/tachiyomi/animeextension/id/oploverz/Oploverz.kt b/src/id/oploverz/src/eu/kanade/tachiyomi/animeextension/id/oploverz/Oploverz.kt index 14650bbc93..ebaba9eb58 100644 --- a/src/id/oploverz/src/eu/kanade/tachiyomi/animeextension/id/oploverz/Oploverz.kt +++ b/src/id/oploverz/src/eu/kanade/tachiyomi/animeextension/id/oploverz/Oploverz.kt @@ -46,8 +46,8 @@ class Oploverz : ConfigurableAnimeSource, AnimeHttpSource() { override fun popularAnimeParse(response: Response): AnimesPage { val doc = response.asJsoup() - val animes = doc.select("div.relat > article").map { element -> - getAnimeFromAnimeElement(element) + val animes = doc.select("div.relat > article").map { + getAnimeFromAnimeElement(it) } return AnimesPage(animes, hasNextPage(doc)) } @@ -59,8 +59,8 @@ class Oploverz : ConfigurableAnimeSource, AnimeHttpSource() { override fun latestUpdatesParse(response: Response): AnimesPage { val doc = response.asJsoup() - val animes = doc.select("div.relat > article").map { element -> - getAnimeFromAnimeElement(element) + val animes = doc.select("div.relat > article").map { + getAnimeFromAnimeElement(it) } return AnimesPage(animes, hasNextPage(doc)) } @@ -72,8 +72,8 @@ class Oploverz : ConfigurableAnimeSource, AnimeHttpSource() { override fun searchAnimeParse(response: Response): AnimesPage { val doc = response.asJsoup() - val animes = doc.select("main.site-main.relat > article").map { element -> - getAnimeFromAnimeElement(element) + val animes = doc.select("main.site-main.relat > article").map { + getAnimeFromAnimeElement(it) } return AnimesPage(animes, hasNextPage(doc)) } @@ -128,9 +128,7 @@ class Oploverz : ConfigurableAnimeSource, AnimeHttpSource() { override fun List