diff --git a/multisrc/overrides/mangathemesia/mangakings/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..0ab60a21a Binary files /dev/null and b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/mangakings/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..cfd441718 Binary files /dev/null and b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..1732a7342 Binary files /dev/null and b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..75384c00e Binary files /dev/null and b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..b01d46e62 Binary files /dev/null and b/multisrc/overrides/mangathemesia/mangakings/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/mangathemesia/mangakings/src/MangaKings.kt b/multisrc/overrides/mangathemesia/mangakings/src/MangaKings.kt new file mode 100644 index 000000000..800059999 --- /dev/null +++ b/multisrc/overrides/mangathemesia/mangakings/src/MangaKings.kt @@ -0,0 +1,33 @@ +package eu.kanade.tachiyomi.extension.tr.mangakings + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimitHost +import eu.kanade.tachiyomi.source.model.SManga +import okhttp3.HttpUrl.Companion.toHttpUrl +import java.text.SimpleDateFormat +import java.util.Locale + +class MangaKings : MangaThemesia( + "Manga Kings", + "https://mangakings.com.tr", + "tr", + dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("tr")), + +) { + override val client = network.client.newBuilder() + .rateLimitHost(baseUrl.toHttpUrl(), 2) + .build() + + // =========================== Manga Details ============================ + override val seriesArtistSelector = ".fmed b:contains(Çizer) + span" + override val seriesAuthorSelector = ".fmed b:contains(Yazar) + span" + override val seriesStatusSelector = ".tsinfo .imptdt:contains(Durum) i" + override val seriesTypeSelector = ".tsinfo .imptdt:contains(Türü) a" + + override fun String?.parseStatus() = when { + this == null -> SManga.UNKNOWN + contains("Devam Ediyor", true) -> SManga.ONGOING + contains("Tamamlandı", true) || contains("bitti", true) -> SManga.COMPLETED + else -> SManga.UNKNOWN + } +} 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 f4d267595..54623e47d 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 @@ -76,6 +76,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Luminous Scans", "https://luminousscans.net", "en", overrideVersionCode = 1), SingleLang("Lunar Scans", "https://lunarscan.org", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Magus Manga", "https://magusmanga.com", "en", overrideVersionCode = 1), + SingleLang("Manga Kings", "https://mangakings.com.tr", "tr"), SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1), SingleLang("Mangacim", "https://www.mangacim.com", "tr", overrideVersionCode = 1), SingleLang("MangaKita", "https://mangakita.id", "id", overrideVersionCode = 2),