WeebCentral: Fix searchMangaFromElement (#7737)

Fix searchMangaFromElement
This commit is contained in:
Chopper 2025-02-21 12:22:23 -03:00 committed by Draff
parent 2deca0aaeb
commit 46b8ceaecf
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -84,10 +84,10 @@ class WeebCentral : ParsedHttpSource() {
override fun searchMangaSelector(): String = "article:has(section)"
override fun searchMangaFromElement(element: Element): SManga = SManga.create().apply {
thumbnail_url = element.selectFirst("img")!!.attr("abs:src")
with(element.selectFirst("div > a")!!) {
thumbnail_url = element.selectFirst("img")?.absUrl("src")
with(element.selectFirst("a")!!) {
title = text()
setUrlWithoutDomain(attr("abs:href"))
setUrlWithoutDomain(absUrl("href"))
}
}