From d4a7c2bfbed46633768b0c5cc9b2484713fb8a54 Mon Sep 17 00:00:00 2001 From: FlaminSarge Date: Mon, 6 Sep 2021 03:24:32 -0700 Subject: [PATCH] [LHTranslation] Migrate from FMReader to Madara (#8896) --- .../lhtranslation/res/mipmap-hdpi/ic_launcher.png | Bin .../lhtranslation/res/mipmap-mdpi/ic_launcher.png | Bin .../lhtranslation/res/mipmap-xhdpi/ic_launcher.png | Bin .../lhtranslation/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher.png | Bin .../lhtranslation/res/web_hi_res_512.png | Bin .../madara/lhtranslation/src/LHTranslation.kt | 8 ++++++++ .../multisrc/fmreader/FMReaderGenerator.kt | 1 - .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 1 + 9 files changed, 9 insertions(+), 1 deletion(-) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/mipmap-hdpi/ic_launcher.png (100%) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/mipmap-mdpi/ic_launcher.png (100%) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/mipmap-xhdpi/ic_launcher.png (100%) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/mipmap-xxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{fmreader => madara}/lhtranslation/res/web_hi_res_512.png (100%) create mode 100644 multisrc/overrides/madara/lhtranslation/src/LHTranslation.kt diff --git a/multisrc/overrides/fmreader/lhtranslation/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/madara/lhtranslation/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/madara/lhtranslation/res/mipmap-hdpi/ic_launcher.png diff --git a/multisrc/overrides/fmreader/lhtranslation/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/madara/lhtranslation/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/madara/lhtranslation/res/mipmap-mdpi/ic_launcher.png diff --git a/multisrc/overrides/fmreader/lhtranslation/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/madara/lhtranslation/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/madara/lhtranslation/res/mipmap-xhdpi/ic_launcher.png diff --git a/multisrc/overrides/fmreader/lhtranslation/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/madara/lhtranslation/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/madara/lhtranslation/res/mipmap-xxhdpi/ic_launcher.png diff --git a/multisrc/overrides/fmreader/lhtranslation/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/madara/lhtranslation/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/madara/lhtranslation/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/fmreader/lhtranslation/res/web_hi_res_512.png b/multisrc/overrides/madara/lhtranslation/res/web_hi_res_512.png similarity index 100% rename from multisrc/overrides/fmreader/lhtranslation/res/web_hi_res_512.png rename to multisrc/overrides/madara/lhtranslation/res/web_hi_res_512.png diff --git a/multisrc/overrides/madara/lhtranslation/src/LHTranslation.kt b/multisrc/overrides/madara/lhtranslation/src/LHTranslation.kt new file mode 100644 index 000000000..697fcc34e --- /dev/null +++ b/multisrc/overrides/madara/lhtranslation/src/LHTranslation.kt @@ -0,0 +1,8 @@ +package eu.kanade.tachiyomi.extension.en.lhtranslation + +import eu.kanade.tachiyomi.multisrc.madara.Madara + +class LHTranslation : Madara("LHTranslation", "https://lhtranslation.net", "en") { + override val versionId = 2 + override val useNewChapterEndpoint = true +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt index 58497529f..bbfda2b6a 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt @@ -18,7 +18,6 @@ class FMReaderGenerator : ThemeSourceGenerator { override val sources = listOf( SingleLang("Epik Manga", "https://www.epikmanga.com", "tr"), SingleLang("KissLove", "https://kissaway.net", "ja"), - SingleLang("LHTranslation", "https://lhtranslation.net", "en", overrideVersionCode = 1), SingleLang("Manga-TR", "https://manga-tr.com", "tr", className = "MangaTR"), SingleLang("Manhwa18", "https://manhwa18.com", "en", isNsfw = true), MultiLang("Manhwa18.net", "https://manhwa18.net", listOf("en", "ko"), className = "Manhwa18NetFactory", isNsfw = 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 c59731cd9..013df9223 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 @@ -140,6 +140,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Latest Manga", "https://latestmanga.net", "en"), SingleLang("Levelerscans", "https://levelerscans.xyz", "en", overrideVersionCode = 1), SingleLang("Leviatan Scans X", "https://xxx.leviatanscans.com", "en", isNsfw = true), + SingleLang("LHTranslation", "https://lhtranslation.net", "en"), SingleLang("Lily Manga", "https://lilymanga.com", "en"), SingleLang("Lima Scans", "http://limascans.xyz/v2", "pt-BR", isNsfw = true, overrideVersionCode = 2), SingleLang("Little Monster Scan", "https://littlemonsterscan.com.br", "pt-BR", overrideVersionCode = 3),