Magcomi: fix popular manga css selector (#5495)

This commit is contained in:
oalieno 2024-10-13 09:49:24 +08:00 committed by GitHub
parent 16d3044606
commit 93ed77e44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"))
}