From 9f3b6bc205ce8184e4404769645ee62bc3307f03 Mon Sep 17 00:00:00 2001 From: Luqman Date: Tue, 3 Oct 2023 05:43:07 +0700 Subject: [PATCH] S2Manga: fix chapter pages (#18272) Closes #16144 --- multisrc/overrides/madara/s2manga/src/S2Manga.kt | 11 +++++++++++ .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/madara/s2manga/src/S2Manga.kt diff --git a/multisrc/overrides/madara/s2manga/src/S2Manga.kt b/multisrc/overrides/madara/s2manga/src/S2Manga.kt new file mode 100644 index 000000000..017949318 --- /dev/null +++ b/multisrc/overrides/madara/s2manga/src/S2Manga.kt @@ -0,0 +1,11 @@ +package eu.kanade.tachiyomi.extension.en.s2manga + +import eu.kanade.tachiyomi.multisrc.madara.Madara + +class S2Manga : Madara("S2Manga", "https://www.s2manga.com", "en") { + + override fun headersBuilder() = super.headersBuilder() + .add("Referer", "$baseUrl/") + + override val pageListParseSelector = "div.page-break img[src*=\"https\"]" +} 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 78a18feef..915040ef6 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 @@ -422,7 +422,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("ROG Mangás", "https://rogmangas.com", "pt-BR", pkgName = "mangasoverall", className = "RogMangas", overrideVersionCode = 1), SingleLang("Romantik Manga", "https://romantikmanga.com", "tr"), SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1), - SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1), + SingleLang("S2Manga", "https://www.s2manga.com", "en", overrideVersionCode = 2), SingleLang("Sagrado Império da Britannia", "https://imperiodabritannia.com", "pt-BR", className = "ImperioDaBritannia"), SingleLang("SamuraiScan", "https://samuraiscan.org", "es", overrideVersionCode = 2), SingleLang("Sawamics", "https://sawamics.com", "en"),