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()