LectorTmo: include book type to genre (#11097)
* LectorTmo: include book type to genre Refactor genre extraction to include book type * Update src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> * Increment version code --------- Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
3404731442
commit
156f67ad7e
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'TuMangaOnline'
|
||||
extClass = '.LectorTmo'
|
||||
extVersionCode = 8
|
||||
extVersionCode = 9
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
||||
@ -239,9 +239,10 @@ class LectorTmo : ParsedHttpSource(), ConfigurableSource {
|
||||
author = it.first()?.attr("title")?.substringAfter(", ")
|
||||
artist = it.last()?.attr("title")?.substringAfter(", ")
|
||||
}
|
||||
genre = document.select("a.py-2").joinToString(", ") {
|
||||
it.text()
|
||||
}
|
||||
genre = buildList {
|
||||
addAll(document.select("a.py-2").eachText())
|
||||
document.selectFirst("h1.book-type")?.text()?.capitalize()?.also(::add)
|
||||
}.joinToString()
|
||||
description = document.select("p.element-description").text()
|
||||
status = parseStatus(document.select("span.book-status").text())
|
||||
thumbnail_url = document.select(".book-thumbnail").attr("src")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user