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 {
extName = 'E-Hentai'
extClass = '.EHFactory'
extVersionCode = 20
extVersionCode = 21
isNsfw = true
}

View File

@ -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<Int, String>::first).map { it.second }
select("#gdt a").map {
it.attr("href")
}
}
private fun chapterPageCall(np: String) = client.newCall(chapterPageRequest(np)).asObservableSuccess()