From fdb81fd7b40495d0c9627f64dd151485c89485f1 Mon Sep 17 00:00:00 2001 From: MeLoseAgain <116882702+MeLoseAgain@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:59:23 +0700 Subject: [PATCH] Fix Komik Chan and Change Lang to English (#16700) * Fix Komik Chan and Change Lang * fix * fix mane issue * fix class issue * fix --- multisrc/overrides/madara/komikchan/src/KomikChan.kt | 11 +++++++++++ .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/madara/komikchan/src/KomikChan.kt diff --git a/multisrc/overrides/madara/komikchan/src/KomikChan.kt b/multisrc/overrides/madara/komikchan/src/KomikChan.kt new file mode 100644 index 000000000..ab5b4d8ff --- /dev/null +++ b/multisrc/overrides/madara/komikchan/src/KomikChan.kt @@ -0,0 +1,11 @@ +package eu.kanade.tachiyomi.extension.en.komikchan + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.GET +import okhttp3.Request + +class KomikChan : Madara("Komik Chan", "https://komikchan.com", "en") { + override val filterNonMangaItems = false + override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/comics/page/$page/?m_orderby=views", headers) + override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/comics/page/$page/?m_orderby=latest", headers) +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 142d2a732..b2d6a5570 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -164,7 +164,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 3), SingleLang("KlikManga", "https://klikmanga.id", "id", overrideVersionCode = 2), SingleLang("KomikRame", "https://komikra.me", "id"), - SingleLang("Komik Chan", "https://komikchan.com", "id"), + SingleLang("Komik Chan", "https://komikchan.com", "en", className = "KomikChan", overrideVersionCode = 1), SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"), SingleLang("Kun Manga", "https://kunmanga.com", "en", overrideVersionCode = 1), SingleLang("Lady Manga", "https://ladymanga.com", "en"),