From 46847b17ccdaea787365df4cd146d22acd27e6a7 Mon Sep 17 00:00:00 2001 From: Lefan <56052054+LefanHu@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:05:58 -0400 Subject: [PATCH] fix parseChapterPage selector (#5773) --- src/all/ehentai/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/all/ehentai/build.gradle b/src/all/ehentai/build.gradle index be43b1386..432bc7d6a 100644 --- a/src/all/ehentai/build.gradle +++ b/src/all/ehentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'E-Hentai' extClass = '.EHFactory' - extVersionCode = 20 + extVersionCode = 21 isNsfw = true } diff --git a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt index 936623544..a364d493a 100644 --- a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt +++ b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt @@ -131,9 +131,9 @@ abstract class EHentai( } private fun parseChapterPage(response: Element) = with(response) { - select(".gdtm a").map { - Pair(it.child(0).attr("alt").toInt(), it.attr("href")) - }.sortedBy(Pair::first).map { it.second } + select("#gdt a").map { + it.attr("href") + } } private fun chapterPageCall(np: String) = client.newCall(chapterPageRequest(np)).asObservableSuccess()