From 156f67ad7e4cb2140c6750aa5ff628425a9c2265 Mon Sep 17 00:00:00 2001 From: Hiirbaf <42479509+Hiirbaf@users.noreply.github.com> Date: Tue, 21 Oct 2025 03:35:40 -0300 Subject: [PATCH] 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> --- src/es/lectortmo/build.gradle | 2 +- .../kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/es/lectortmo/build.gradle b/src/es/lectortmo/build.gradle index 240b329e4..70a3b2845 100644 --- a/src/es/lectortmo/build.gradle +++ b/src/es/lectortmo/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'TuMangaOnline' extClass = '.LectorTmo' - extVersionCode = 8 + extVersionCode = 9 isNsfw = true } diff --git a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt index 0b21e77fb..2be83c0a5 100644 --- a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt +++ b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt @@ -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")