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:
Hiirbaf 2025-10-21 03:35:40 -03:00 committed by Draff
parent 3404731442
commit 156f67ad7e
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'TuMangaOnline'
extClass = '.LectorTmo'
extVersionCode = 8
extVersionCode = 9
isNsfw = true
}

View File

@ -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")