diff --git a/multisrc/overrides/mangathemesia/komikstation/src/KomikStation.kt b/multisrc/overrides/mangathemesia/komikstation/src/KomikStation.kt index 44c0c8244..c7b912d12 100644 --- a/multisrc/overrides/mangathemesia/komikstation/src/KomikStation.kt +++ b/multisrc/overrides/mangathemesia/komikstation/src/KomikStation.kt @@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.id.komikstation import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.network.interceptor.rateLimit +import eu.kanade.tachiyomi.source.model.SManga import okhttp3.OkHttpClient class KomikStation : MangaThemesia("Komik Station", "https://komikstation.co", "id") { @@ -12,6 +13,20 @@ class KomikStation : MangaThemesia("Komik Station", "https://komikstation.co", " .rateLimit(4) .build() + override val seriesTitleSelector = ".ts-breadcrumb li[itemprop]:last-child span" + override val seriesAuthorSelector = ".infox .fmed:has(.fa-pen-fancy) span" + override val seriesArtistSelector = ".infox .fmed:has(.fa-paintbrush) span" + override val seriesTypeSelector = ".tsinfo .imptdt:has(a[href*=\"type\"]) a" + override val seriesStatusSelector = ".tsinfo .imptdt:first-child i" + + override fun String?.parseStatus(): Int = when { + this == null -> SManga.UNKNOWN + listOf("ongoing", "berjalan").any { this.contains(it, ignoreCase = true) } -> SManga.ONGOING + this.contains("hiatus", ignoreCase = true) -> SManga.ON_HIATUS + this.contains("tamat", ignoreCase = true) -> SManga.COMPLETED + else -> SManga.UNKNOWN + } + override val projectPageString = "/project-list" override val hasProjectPage = true diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 162deb407..05d9f45bb 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -50,7 +50,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1), SingleLang("Komik Cast", "https://komikcast.vip", "id", overrideVersionCode = 21), SingleLang("KomikDewasa", "https://komikdewasa.org", "id", isNsfw = true), - SingleLang("Komik Station", "https://komikstation.co", "id", overrideVersionCode = 3), + SingleLang("Komik Station", "https://komikstation.co", "id", overrideVersionCode = 4), SingleLang("KomikIndo.co", "https://komikindo.co", "id", className = "KomikindoCo", overrideVersionCode = 3), SingleLang("Komik Lab", "https://komiklab.com", "en", overrideVersionCode = 3), SingleLang("KomikMama", "https://komikmama.co", "id", overrideVersionCode = 1),