Everia.club: fix page list parsing (#15033)

This commit is contained in:
stevenyomi 2023-01-20 23:13:13 +08:00 committed by GitHub
parent 33f368283d
commit eb7cbf6cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Everia.club'
pkgNameSuffix = 'all.everiaclub'
extClass = '.EveriaClub'
extVersionCode = 3
extVersionCode = 4
isNsfw = true
}

View File

@ -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))
}