Asura Scans: fix chapter selector (#6607)

This commit is contained in:
Vetle Ledaal 2024-12-14 11:41:08 +01:00 committed by Draff
parent e91f02af02
commit d3054332eb
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Asura Scans'
extClass = '.AsuraScans'
extVersionCode = 42
extVersionCode = 43
}
apply from: "$rootDir/common.gradle"

View File

@ -245,8 +245,8 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {
override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.selectFirst("a")!!.attr("abs:href").toPermSlugIfNeeded())
val chNumber = element.selectFirst("h3 > a")!!.ownText()
val chTitle = element.select("h3 > a > span").joinToString(" ") { it.ownText() }
val chNumber = element.selectFirst("h3")!!.ownText()
val chTitle = element.select("h3 > span").joinToString(" ") { it.ownText() }
name = if (chTitle.isBlank()) chNumber else "$chNumber - $chTitle"
date_upload = try {
val text = element.selectFirst("h3 + h3")!!.ownText()