From eb7cbf6cb236982e57d5803583d027bb9e885efd Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Fri, 20 Jan 2023 23:13:13 +0800 Subject: [PATCH] Everia.club: fix page list parsing (#15033) --- src/all/everiaclub/build.gradle | 2 +- .../tachiyomi/extension/all/everiaclub/EveriaClub.kt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/all/everiaclub/build.gradle b/src/all/everiaclub/build.gradle index 5f55f60cc..f74ec591e 100644 --- a/src/all/everiaclub/build.gradle +++ b/src/all/everiaclub/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Everia.club' pkgNameSuffix = 'all.everiaclub' extClass = '.EveriaClub' - extVersionCode = 3 + extVersionCode = 4 isNsfw = true } diff --git a/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt b/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt index 42528cf43..5b83d5b58 100644 --- a/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt +++ b/src/all/everiaclub/src/eu/kanade/tachiyomi/extension/all/everiaclub/EveriaClub.kt @@ -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 { val pages = mutableListOf() - 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)) }