Japscan: Fix date (#15171)

This commit is contained in:
nzoba 2023-01-29 19:39:29 +01:00 committed by GitHub
parent b6bb3e28bf
commit 36a6bcdd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Japscan'
pkgNameSuffix = 'fr.japscan'
extClass = '.Japscan'
extVersionCode = 37
extVersionCode = 38
}
apply from: "$rootDir/common.gradle"

View File

@ -246,7 +246,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
chapter.setUrlWithoutDomain(urlElement.attr("href"))
chapter.name = urlElement.ownText()
// Using ownText() doesn't include childs' text, like "VUS" or "RAW" badges, in the chapter name.
chapter.date_upload = element.select("> span").text().trim().let { parseChapterDate(it) }
chapter.date_upload = element.selectFirst("span").text().trim().let { parseChapterDate(it) }
return chapter
}