Komik Station: fix title & series info (#18029)

Komik Station: fix title & manga info

- fix title from adding "bahasa indonesia"
- fix author, artist, series status, series type
This commit is contained in:
Luqman 2023-09-20 05:41:37 +07:00 committed by GitHub
parent 1e6fb1ea3f
commit ec324058ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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),