WeebCentral: Fix manga title (#8131)

Fix manga title
This commit is contained in:
Chopper 2025-03-19 15:59:35 -03:00 committed by Draff
parent c5fbede326
commit 30a65efcb0
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Weeb Central' extName = 'Weeb Central'
extClass = '.WeebCentral' extClass = '.WeebCentral'
extVersionCode = 12 extVersionCode = 13
isNsfw = true isNsfw = true
} }

View File

@ -81,14 +81,12 @@ class WeebCentral : ParsedHttpSource() {
return GET(url, headers) return GET(url, headers)
} }
override fun searchMangaSelector(): String = "article:has(section)" override fun searchMangaSelector(): String = "article > section > a"
override fun searchMangaFromElement(element: Element): SManga = SManga.create().apply { override fun searchMangaFromElement(element: Element): SManga = SManga.create().apply {
thumbnail_url = element.selectFirst("img")?.absUrl("src") thumbnail_url = element.selectFirst("img")?.absUrl("src")
with(element.selectFirst("a")!!) { title = element.selectFirst("div:not([class]):last-child")!!.text()
title = text() setUrlWithoutDomain(element.absUrl("href"))
setUrlWithoutDomain(absUrl("href"))
}
} }
override fun searchMangaNextPageSelector(): String = "button" override fun searchMangaNextPageSelector(): String = "button"