From 1699cece9f9f17f1033819a005c68b403f0d703c Mon Sep 17 00:00:00 2001 From: mohamedotaku Date: Tue, 6 Feb 2024 23:40:32 +0100 Subject: [PATCH] override mangaSubString for "GateManga" (#1069) override mangaSubString --- .../overrides/madara/gatemanga/src/Gatemanga.kt | 14 ++++++++++++++ .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/madara/gatemanga/src/Gatemanga.kt diff --git a/multisrc/overrides/madara/gatemanga/src/Gatemanga.kt b/multisrc/overrides/madara/gatemanga/src/Gatemanga.kt new file mode 100644 index 000000000..fcbb7fa08 --- /dev/null +++ b/multisrc/overrides/madara/gatemanga/src/Gatemanga.kt @@ -0,0 +1,14 @@ +package eu.kanade.tachiyomi.extension.ar.gatemanga + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import java.text.SimpleDateFormat +import java.util.Locale + +class Gatemanga : Madara( + "Gatemanga", + "https://gatemanga.com", + "ar", + dateFormat = SimpleDateFormat("d MMMMŲŒ yyyy", Locale("ar")), +) { + override val mangaSubString = "ar" +} 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 c883b5098..5726d1377 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 @@ -98,7 +98,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("FreeMangaTop", "https://freemangatop.com", "en", overrideVersionCode = 2), SingleLang("FreeWebtoonCoins", "https://freewebtooncoins.com", "en", overrideVersionCode = 1), SingleLang("GalaxyDegenScans", "https://gdscans.com", "en", overrideVersionCode = 4), - SingleLang("Gatemanga", "https://gatemanga.com", "ar", overrideVersionCode = 1), + SingleLang("Gatemanga", "https://gatemanga.com", "ar", overrideVersionCode = 2), SingleLang("Gekkou Scans", "https://gekkou.site", "pt-BR", isNsfw = true, pkgName = "gekkouscan", overrideVersionCode = 2), SingleLang("Ghost Scan", "https://ghostscan.com.br", "pt-BR", isNsfw = true), SingleLang("Girls Love Manga!", "https://glmanga.com", "en", isNsfw = true, className = "GirlsLoveManga"),