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