From 9852705a1d3aad1724823cc17a092213cf4f626d Mon Sep 17 00:00:00 2001 From: kooper100 Date: Wed, 10 Jan 2024 17:50:21 -0500 Subject: [PATCH] Added subfolder in manga description. Moved tags from manga description to genre list. --- .../src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt b/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt index 5c4b43ef..7c807e74 100644 --- a/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt +++ b/src/en/madokami/src/eu/kanade/tachiyomi/extension/en/madokami/Madokami.kt @@ -69,6 +69,7 @@ class Madokami : ConfigurableSource, ParsedHttpSource() { manga.url = element.attr("href") val pathSegments = element.attr("href").split("/") var i = pathSegments.size + manga.description = URLDecoder.decode(pathSegments[i - 1], "UTF-8") do { i--; manga.title = URLDecoder.decode(pathSegments[i], "UTF-8") } while (URLDecoder.decode(pathSegments[i], "UTF-8").startsWith("!")) return manga } @@ -111,8 +112,7 @@ class Madokami : ConfigurableSource, ParsedHttpSource() { override fun mangaDetailsParse(document: Document): SManga { val manga = SManga.create() manga.author = document.select("a[itemprop=\"author\"]").joinToString(", ") { it.text() } - manga.description = "Tags: " + document.select("div.genres[itemprop=\"keywords\"] a.tag.tag-category").joinToString(", ") { it.text() } - manga.genre = document.select("div.genres a.tag[itemprop=\"genre\"]").joinToString(", ") { it.text() } + manga.genre = document.select("div.genres a.tag").joinToString(", ") { it.text() } manga.status = if (document.select("span.scanstatus").text() == "Yes") SManga.COMPLETED else SManga.UNKNOWN manga.thumbnail_url = document.select("div.manga-info img[itemprop=\"image\"]").attr("src") return manga