Magcomi: fix popular manga css selector (#5495)

This commit is contained in:
oalieno 2024-10-13 09:49:24 +08:00 committed by Draff
parent dcd0ea5b37
commit 24fc1ba08a
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MagComi'
themePkg = 'gigaviewer'
baseUrl = 'https://magcomi.com'
overrideVersionCode = 0
overrideVersionCode = 1
}
apply from: "$rootDir/common.gradle"

View File

@ -20,11 +20,11 @@ class MagComi : GigaViewer(
override val publisher: String = "マッグガーデン"
override fun popularMangaSelector(): String = "ul.magcomi-series-list li.series-item > a"
override fun popularMangaSelector(): String = "ul[class^=\"SeriesSection_series_list\"] > li > a"
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
title = element.select("h3.series-title").text()
thumbnail_url = element.select("div.series-thumb img").attr("src")
title = element.select("h3").text()
thumbnail_url = element.select("div.jsx-series-thumb > span > noscript > img").attr("src")
setUrlWithoutDomain(element.attr("href"))
}