From fffb9e929aff1ae5a1a7e0e4558b7ea436f829c4 Mon Sep 17 00:00:00 2001 From: Luqman <16263232+Riztard@users.noreply.github.com> Date: Tue, 31 Oct 2023 03:07:13 +0700 Subject: [PATCH] Mangakyo: fix search, series info, chapter date (#18787) Mangakyo: fix search & series info - fix browse/search Closes #18742 - fix series info title - fix chapter date --- .../overrides/mangathemesia/mangakyo/src/Mangakyo.kt | 11 ++++++++++- .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/multisrc/overrides/mangathemesia/mangakyo/src/Mangakyo.kt b/multisrc/overrides/mangathemesia/mangakyo/src/Mangakyo.kt index 8304a18a5..ee9de6b8e 100644 --- a/multisrc/overrides/mangathemesia/mangakyo/src/Mangakyo.kt +++ b/multisrc/overrides/mangathemesia/mangakyo/src/Mangakyo.kt @@ -3,13 +3,22 @@ package eu.kanade.tachiyomi.extension.id.mangakyo import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale -class Mangakyo : MangaThemesia("Mangakyo", "https://mangakyo.org", "id") { +class Mangakyo : MangaThemesia( + "Mangakyo", + "https://mangakyo.org", + "id", + "/komik", + SimpleDateFormat("MMM d, yyyy", Locale("id")), +) { override val client: OkHttpClient = super.client.newBuilder() .rateLimit(4) .build() + override val seriesTitleSelector = ".ts-breadcrumb li:last-child span" override val seriesAuthorSelector = ".infotable tr:contains(Pengarang) td:last-child" override val seriesDescriptionSelector = ".entry-content[itemprop=description] p:not(:contains(melapor ke fanspage))" override val seriesAltNameSelector = ".infotable tr:contains(Alternatif) td:last-child" 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 05bef92b7..5631e0a8e 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 @@ -75,7 +75,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { 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.net", "id", overrideVersionCode = 1), - SingleLang("Mangakyo", "https://mangakyo.org", "id", overrideVersionCode = 2), + SingleLang("Mangakyo", "https://mangakyo.org", "id", overrideVersionCode = 3), SingleLang("MangaShiina", "https://mangashiina.com", "es"), SingleLang("Mangasusu", "https://mangasusuku.xyz/", "id", isNsfw = true, overrideVersionCode = 2), SingleLang("MangaTale", "https://mangatale.co", "id"),