Everia.club: fix page list parsing (#15033)
This commit is contained in:
parent
33f368283d
commit
eb7cbf6cb2
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Everia.club'
|
||||
pkgNameSuffix = 'all.everiaclub'
|
||||
extClass = '.EveriaClub'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -77,14 +77,15 @@ class EveriaClub() : ParsedHttpSource() {
|
|||
genres.add(it.text())
|
||||
}
|
||||
manga.genre = genres.joinToString(", ")
|
||||
manga.status = SManga.COMPLETED
|
||||
return manga
|
||||
}
|
||||
|
||||
override fun chapterFromElement(element: Element): SChapter {
|
||||
val chapter = SChapter.create()
|
||||
chapter.setUrlWithoutDomain(element.select("link[rel=\"canonical\"]").attr("href"))
|
||||
chapter.chapter_number = 0F
|
||||
chapter.name = element.select(".entry-title").text()
|
||||
chapter.chapter_number = -2f
|
||||
chapter.name = "Gallery"
|
||||
chapter.date_upload = getDate(element.select("link[rel=\"canonical\"]").attr("href"))
|
||||
return chapter
|
||||
}
|
||||
|
@ -94,7 +95,7 @@ class EveriaClub() : ParsedHttpSource() {
|
|||
// Pages
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
val pages = mutableListOf<Page>()
|
||||
document.select(".wp-block-gallery img").forEachIndexed { i, it ->
|
||||
document.select("article img").forEachIndexed { i, it ->
|
||||
val itUrl = it.attr("src")
|
||||
pages.add(Page(i, itUrl, itUrl))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue