From d6b90e70c72afab205067dc40ae31fc114df44b6 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:55:09 -0300 Subject: [PATCH] Fix no pages found in YM (#18147) Fix no pages found in YM. --- src/pt/yugenmangas/build.gradle | 2 +- .../kanade/tachiyomi/extension/pt/yugenmangas/YugenMangas.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pt/yugenmangas/build.gradle b/src/pt/yugenmangas/build.gradle index 1d4b531b0..b7d02f1b5 100644 --- a/src/pt/yugenmangas/build.gradle +++ b/src/pt/yugenmangas/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Yugen Mangás' pkgNameSuffix = 'pt.yugenmangas' extClass = '.YugenMangas' - extVersionCode = 34 + extVersionCode = 35 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/yugenmangas/src/eu/kanade/tachiyomi/extension/pt/yugenmangas/YugenMangas.kt b/src/pt/yugenmangas/src/eu/kanade/tachiyomi/extension/pt/yugenmangas/YugenMangas.kt index 80d66f43b..6099e5b46 100644 --- a/src/pt/yugenmangas/src/eu/kanade/tachiyomi/extension/pt/yugenmangas/YugenMangas.kt +++ b/src/pt/yugenmangas/src/eu/kanade/tachiyomi/extension/pt/yugenmangas/YugenMangas.kt @@ -50,7 +50,7 @@ class YugenMangas : ParsedHttpSource() { override fun popularMangaRequest(page: Int): Request = GET(baseUrl, headers) - override fun popularMangaSelector(): String = "div.container-popular div.swiper-wrapper a" + override fun popularMangaSelector(): String = "div.popular div.swiper-wrapper a" override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply { title = element.selectFirst("h1")!!.text() @@ -121,7 +121,7 @@ class YugenMangas : ParsedHttpSource() { } override fun pageListParse(document: Document): List { - return document.select("div.chapter-content img.chapter-image") + return document.select("div.chapter-images > img[src]") .mapIndexed { index, element -> Page(index, document.location(), element.absUrl("src")) }