From 4feb5e77a50d479dd47bf0238b594178a450c293 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Sun, 14 Jan 2024 16:47:34 +0000 Subject: [PATCH] Update domain for LuxManga (#251) Also marking it as NSFW because of "Prince Snow White is Taken by the Queen". --- multisrc/overrides/madara/luxmanga/src/LuxManga.kt | 9 +++++++++ .../kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/madara/luxmanga/src/LuxManga.kt diff --git a/multisrc/overrides/madara/luxmanga/src/LuxManga.kt b/multisrc/overrides/madara/luxmanga/src/LuxManga.kt new file mode 100644 index 000000000..c85b356a1 --- /dev/null +++ b/multisrc/overrides/madara/luxmanga/src/LuxManga.kt @@ -0,0 +1,9 @@ +package eu.kanade.tachiyomi.extension.en.luxmanga + +import eu.kanade.tachiyomi.multisrc.madara.Madara + +class LuxManga : Madara("LuxManga", "https://luxmanga.net", "en") { + override val useNewChapterEndpoint = false + + override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/" +} 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 79f9f262e..111094433 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 @@ -193,7 +193,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Lord Manga", "https://lordmanga.com", "en"), SingleLang("Luffy Manga", "https://luffymanga.com", "en", isNsfw = false), - SingleLang("LuxManga", "https://luxmanga.com", "en"), + SingleLang("LuxManga", "https://luxmanga.net", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Maid Scan", "https://maidscan.com.br", "pt-BR"), SingleLang("Manga 18h", "https://manga18h.com", "en", isNsfw = true),