From cc3701250a577a2bc03a93f2dd24a0916594c6a9 Mon Sep 17 00:00:00 2001 From: Draken Date: Mon, 10 Mar 2025 14:27:07 +0000 Subject: [PATCH] [Kumapage] Fixes --- .../org/koitharu/kotatsu/parsers/site/id/Kumapage.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/id/Kumapage.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/id/Kumapage.kt index 25afcc6b..740e70a2 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/id/Kumapage.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/id/Kumapage.kt @@ -118,6 +118,13 @@ internal class Kumapage(context: MangaLoaderContext) : val state = if (doc.selectFirst("div.detail-singular:has(p:contains(Status)) + p") ?.text() == "Active") { MangaState.ONGOING } else { MangaState.FINISHED } val description = doc.selectFirst("td:contains(Synopsis) + td")?.text() + val altTitles = doc.select("div.comic-details p").let { paragraphs -> + if (paragraphs.size > 1) { + setOf(paragraphs[1].text()) + } else { + emptySet() + } + } val tags = doc.select("div.categories p.category").map { tag -> MangaTag(title = tag.text(), key = "", source = source) }.toSet() @@ -137,6 +144,7 @@ internal class Kumapage(context: MangaLoaderContext) : }.reversed() return manga.copy( + altTitles = altTitles, description = description, state = state, tags = tags,