fix parseChapterPage selector (#5773)

This commit is contained in:
Lefan 2024-10-30 11:05:58 -04:00 committed by GitHub
parent b98d06560f
commit 46847b17cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'E-Hentai' extName = 'E-Hentai'
extClass = '.EHFactory' extClass = '.EHFactory'
extVersionCode = 20 extVersionCode = 21
isNsfw = true isNsfw = true
} }

View File

@ -131,9 +131,9 @@ abstract class EHentai(
} }
private fun parseChapterPage(response: Element) = with(response) { private fun parseChapterPage(response: Element) = with(response) {
select(".gdtm a").map { select("#gdt a").map {
Pair(it.child(0).attr("alt").toInt(), it.attr("href")) it.attr("href")
}.sortedBy(Pair<Int, String>::first).map { it.second } }
} }
private fun chapterPageCall(np: String) = client.newCall(chapterPageRequest(np)).asObservableSuccess() private fun chapterPageCall(np: String) = client.newCall(chapterPageRequest(np)).asObservableSuccess()