mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
fix parseChapterPage selector (#5773)
This commit is contained in:
parent
b98d06560f
commit
46847b17cc
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'E-Hentai'
|
extName = 'E-Hentai'
|
||||||
extClass = '.EHFactory'
|
extClass = '.EHFactory'
|
||||||
extVersionCode = 20
|
extVersionCode = 21
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user