AsuraScans: Show full chapter title (#4239)

show full title
This commit is contained in:
bapeey 2024-07-26 03:03:25 -05:00 committed by Draff
parent 55cad2ee8f
commit c58f4c3449
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -233,7 +233,7 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {
override fun chapterFromElement(element: Element) = SChapter.create().apply { override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.attr("abs:href").toPermSlugIfNeeded()) setUrlWithoutDomain(element.attr("abs:href").toPermSlugIfNeeded())
name = element.selectFirst("h3:eq(0)")!!.ownText() name = element.selectFirst("h3:eq(0)")!!.text()
date_upload = try { date_upload = try {
val text = element.selectFirst("h3:eq(1)")!!.ownText() val text = element.selectFirst("h3:eq(1)")!!.ownText()
val cleanText = text.replace(CLEAN_DATE_REGEX, "$1") val cleanText = text.replace(CLEAN_DATE_REGEX, "$1")