A fix for the Scanlator Tag. (#8174)

* A fix for the Scanlator Tag.

* Update build.gradle
This commit is contained in:
Clouddark75 2021-07-19 07:43:47 -04:00 committed by GitHub
parent 1a352389e6
commit 7a34002a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'LectorManga'
pkgNameSuffix = 'es.lectormanga'
extClass = '.LectorManga'
extVersionCode = 16
extVersionCode = 17
libVersion = '1.2'
}

View File

@ -220,7 +220,7 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() {
private fun oneShotChapterFromElement(element: Element) = SChapter.create().apply {
url = element.select("div.row > .text-right > a").attr("href")
name = "One Shot"
scanlator = element.select("div.col-md-6.text-truncate")?.text()
scanlator = element.select("div.col-12.col-sm-12.col-md-4.text-truncate span")?.text()
date_upload = element.select("span.badge.badge-primary.p-2").first()?.text()?.let { parseChapterDate(it) }
?: 0
}
@ -228,7 +228,7 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() {
private fun regularChapterFromElement(chapterName: String, info: Element, number: Float) = SChapter.create().apply {
url = info.select("div.row > .text-right > a").attr("href")
name = chapterName
scanlator = info.select("div.col-md-6.text-truncate")?.text()
scanlator = info.select("div.col-12.col-sm-12.col-md-4.text-truncate span")?.text()
date_upload = info.select("span.badge.badge-primary.p-2").first()?.text()?.let {
parseChapterDate(it)
} ?: 0