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:
parent
1e6fb1ea3f
commit
ec324058ed
|
@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.id.komikstation
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
|
|
||||||
class KomikStation : MangaThemesia("Komik Station", "https://komikstation.co", "id") {
|
class KomikStation : MangaThemesia("Komik Station", "https://komikstation.co", "id") {
|
||||||
|
@ -12,6 +13,20 @@ class KomikStation : MangaThemesia("Komik Station", "https://komikstation.co", "
|
||||||
.rateLimit(4)
|
.rateLimit(4)
|
||||||
.build()
|
.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 projectPageString = "/project-list"
|
||||||
|
|
||||||
override val hasProjectPage = true
|
override val hasProjectPage = true
|
||||||
|
|
|
@ -50,7 +50,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
|
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
|
||||||
SingleLang("Komik Cast", "https://komikcast.vip", "id", overrideVersionCode = 21),
|
SingleLang("Komik Cast", "https://komikcast.vip", "id", overrideVersionCode = 21),
|
||||||
SingleLang("KomikDewasa", "https://komikdewasa.org", "id", isNsfw = true),
|
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("KomikIndo.co", "https://komikindo.co", "id", className = "KomikindoCo", overrideVersionCode = 3),
|
||||||
SingleLang("Komik Lab", "https://komiklab.com", "en", overrideVersionCode = 3),
|
SingleLang("Komik Lab", "https://komiklab.com", "en", overrideVersionCode = 3),
|
||||||
SingleLang("KomikMama", "https://komikmama.co", "id", overrideVersionCode = 1),
|
SingleLang("KomikMama", "https://komikmama.co", "id", overrideVersionCode = 1),
|
||||||
|
|
Loading…
Reference in New Issue