Fix no pages found in YM (#18147)

Fix no pages found in YM.
This commit is contained in:
Alessandro Jean 2023-09-25 15:55:09 -03:00 committed by GitHub
parent 7806e14938
commit d6b90e70c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Yugen Mangás' extName = 'Yugen Mangás'
pkgNameSuffix = 'pt.yugenmangas' pkgNameSuffix = 'pt.yugenmangas'
extClass = '.YugenMangas' extClass = '.YugenMangas'
extVersionCode = 34 extVersionCode = 35
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -50,7 +50,7 @@ class YugenMangas : ParsedHttpSource() {
override fun popularMangaRequest(page: Int): Request = GET(baseUrl, headers) 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 { override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
title = element.selectFirst("h1")!!.text() title = element.selectFirst("h1")!!.text()
@ -121,7 +121,7 @@ class YugenMangas : ParsedHttpSource() {
} }
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select("div.chapter-content img.chapter-image") return document.select("div.chapter-images > img[src]")
.mapIndexed { index, element -> .mapIndexed { index, element ->
Page(index, document.location(), element.absUrl("src")) Page(index, document.location(), element.absUrl("src"))
} }