From b69211092f6cf6414d8c7dc9ecdba521bd635b7e Mon Sep 17 00:00:00 2001 From: Luqman Date: Tue, 10 Oct 2023 04:30:33 +0700 Subject: [PATCH] KomikIndoID: fix & add series info (#18447) KomikIndoID: fix, add series info - fix series status - add other genre, series type - add alternative name --- src/id/komikindoid/build.gradle | 2 +- .../tachiyomi/extension/id/komikindoid/KomikIndoID.kt | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/id/komikindoid/build.gradle b/src/id/komikindoid/build.gradle index c3f6797cf..7d05b80a7 100644 --- a/src/id/komikindoid/build.gradle +++ b/src/id/komikindoid/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'KomikIndoID' pkgNameSuffix = 'id.komikindoid' extClass = '.KomikIndoID' - extVersionCode = 12 + extVersionCode = 13 } apply from: "$rootDir/common.gradle" diff --git a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt index 67929f80a..422f8d7dd 100644 --- a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt +++ b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt @@ -132,13 +132,18 @@ class KomikIndoID : ParsedHttpSource() { val artistCleaner = document.select(".infox .spe b:contains(Ilustrator)").text() manga.artist = document.select(".infox .spe span:contains(Ilustrator)").text().substringAfter(artistCleaner) val genres = mutableListOf() - infoElement.select(".infox > .genre-info > a").forEach { element -> + infoElement.select(".infox .genre-info a, .infox .spe span:contains(Grafis:) a, .infox .spe span:contains(Tema:) a, .infox .spe span:contains(Konten:) a, .infox .spe span:contains(Jenis Komik:) a").forEach { element -> val genre = element.text() genres.add(genre) } manga.genre = genres.joinToString(", ") - manga.status = parseStatus(infoElement.select(".infox > .spe > span:nth-child(1)").text()) + manga.status = parseStatus(infoElement.select(".infox > .spe > span:nth-child(2)").text()) manga.description = descElement.select("p").text().substringAfter("bercerita tentang ") + // Add alternative name to manga description + val altName = document.selectFirst(".infox > .spe > span:nth-child(1)")?.text().takeIf { it.isNullOrBlank().not() } + altName?.let { + manga.description = manga.description + "\n\n$altName" + } manga.thumbnail_url = document.select(".thumb > img:nth-child(1)").attr("src").substringBeforeLast("?") return manga }