Everia.club: fix page list parsing (#15061)
This commit is contained in:
parent
fe093b3eac
commit
ab1a500acf
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Everia.club'
|
extName = 'Everia.club'
|
||||||
pkgNameSuffix = 'all.everiaclub'
|
pkgNameSuffix = 'all.everiaclub'
|
||||||
extClass = '.EveriaClub'
|
extClass = '.EveriaClub'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,9 @@ class EveriaClub() : ParsedHttpSource() {
|
||||||
override val name = "Everia.club"
|
override val name = "Everia.club"
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
|
||||||
|
override fun headersBuilder() = super.headersBuilder()
|
||||||
|
.add("Referer", "$baseUrl/")
|
||||||
|
|
||||||
// Latest
|
// Latest
|
||||||
override fun latestUpdatesFromElement(element: Element): SManga {
|
override fun latestUpdatesFromElement(element: Element): SManga {
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
|
@ -96,7 +99,7 @@ class EveriaClub() : ParsedHttpSource() {
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
document.select("article img").forEachIndexed { i, it ->
|
document.select("article img").forEachIndexed { i, it ->
|
||||||
val itUrl = it.attr("src")
|
val itUrl = it.attr("data-src").ifEmpty { it.attr("src") }
|
||||||
pages.add(Page(i, itUrl, itUrl))
|
pages.add(Page(i, itUrl, itUrl))
|
||||||
}
|
}
|
||||||
return pages
|
return pages
|
||||||
|
|
Loading…
Reference in New Issue