From bad7674de595e8b43467fea6dfbff8c9fedd0575 Mon Sep 17 00:00:00 2001 From: MuhamedZ1 <88522251+MuhamedZ1@users.noreply.github.com> Date: Sun, 23 Jul 2023 01:29:45 +0530 Subject: [PATCH] Fix date format for Harimanga and DuniaKomik.id (#17166) * Changes made to constructor calls of Harimanga.kt and DuniaKomikId.kt * Removed unused import in Harimanga.kt * Revert "Changes made to constructor calls of Harimanga.kt and DuniaKomikId.kt" This reverts commit dc18ae3bc0c4246c9112d699e38b86352e9d521c. * Changes made to constructor calls after revert * Changes made to constructor calls after revert * Added missing imports to DuniaKomikId.kt --- multisrc/overrides/madara/harimanga/src/Harimanga.kt | 4 +--- .../overrides/mangathemesia/duniakomikid/src/DuniaKomikId.kt | 4 +++- .../eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/multisrc/overrides/madara/harimanga/src/Harimanga.kt b/multisrc/overrides/madara/harimanga/src/Harimanga.kt index 9af4f9751..6fbeffa78 100644 --- a/multisrc/overrides/madara/harimanga/src/Harimanga.kt +++ b/multisrc/overrides/madara/harimanga/src/Harimanga.kt @@ -1,7 +1,5 @@ package eu.kanade.tachiyomi.extension.en.harimanga import eu.kanade.tachiyomi.multisrc.madara.Madara -import java.text.SimpleDateFormat -import java.util.Locale -class Harimanga : Madara("Harimanga", "https://harimanga.com", "en", SimpleDateFormat("MM/dd/yyyy", Locale.US)) +class Harimanga : Madara("Harimanga", "https://harimanga.com", "en") diff --git a/multisrc/overrides/mangathemesia/duniakomikid/src/DuniaKomikId.kt b/multisrc/overrides/mangathemesia/duniakomikid/src/DuniaKomikId.kt index 24352c5cf..1e07efa25 100644 --- a/multisrc/overrides/mangathemesia/duniakomikid/src/DuniaKomikId.kt +++ b/multisrc/overrides/mangathemesia/duniakomikid/src/DuniaKomikId.kt @@ -1,8 +1,10 @@ package eu.kanade.tachiyomi.extension.id.duniakomikid import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import java.text.SimpleDateFormat +import java.util.Locale -class DuniaKomikId : MangaThemesia("DuniaKomik.id", "https://duniakomik.id", "id") { +class DuniaKomikId : MangaThemesia("DuniaKomik.id", "https://duniakomik.id", "id", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("id", "ID"))) { override val hasProjectPage = true } 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 215431e19..9c27aaba9 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 @@ -122,7 +122,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Hreads", "https://hreads.net", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Hades no Fansub Hentai", "https://h.mangareaderpro.com", "es", isNsfw = true), SingleLang("Hades no Fansub", "https://mangareaderpro.com", "es", overrideVersionCode = 1), - SingleLang("Harimanga", "https://harimanga.com", "en", overrideVersionCode = 2), + SingleLang("Harimanga", "https://harimanga.com", "en", overrideVersionCode = 3), SingleLang("Hatachi Manga", "https://hachiraw.com", "ja", isNsfw = true, overrideVersionCode = 2), SingleLang("Hattori Manga", "https://hattorimanga.com", "tr", isNsfw = true), SingleLang("Hayalistic", "https://hayalistic.com", "tr"), 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 4bb03c7ca..311c833eb 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 @@ -31,7 +31,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("CosmicScans.id", "https://cosmicscans.id", "id", overrideVersionCode = 1, className = "CosmicScansID"), SingleLang("Diskus Scan", "https://diskusscan.com", "pt-BR", overrideVersionCode = 7), SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"), - SingleLang("DuniaKomik.id", "https://duniakomik.id", "id", className = "DuniaKomikId"), + SingleLang("DuniaKomik.id", "https://duniakomik.id", "id", className = "DuniaKomikId", overrideVersionCode = 1), SingleLang("ElarcPage", "https://elarcpage.com", "en"), SingleLang("Epsilon Scan", "https://epsilonscan.fr", "fr", isNsfw = true), SingleLang("Franxx Mangás", "https://franxxmangas.net", "pt-BR", className = "FranxxMangas", isNsfw = true),