From de9bbf252f34ec1936c7a9b1f943ec5b001b2fa1 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:58:53 -0300 Subject: [PATCH] Remove unused path at CS (#18368) Remove unused path at CS. --- .../overrides/madara/cerisescans/src/CeriseScan.kt | 11 ++++++++++- .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/multisrc/overrides/madara/cerisescans/src/CeriseScan.kt b/multisrc/overrides/madara/cerisescans/src/CeriseScan.kt index 90e0fe3e5..5c99fcdce 100644 --- a/multisrc/overrides/madara/cerisescans/src/CeriseScan.kt +++ b/multisrc/overrides/madara/cerisescans/src/CeriseScan.kt @@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.extension.pt.cerisescans import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.interceptor.rateLimit +import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SManga import okhttp3.OkHttpClient import okhttp3.Request @@ -12,7 +13,7 @@ import java.util.concurrent.TimeUnit class CeriseScan : Madara( "Cerise Scan", - "https://cerisescan.com/home1", + "https://cerisescan.com", "pt-BR", SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")), ) { @@ -33,4 +34,12 @@ class CeriseScan : Madara( override fun chapterListRequest(manga: SManga): Request { return GET(baseUrl + manga.url.replace("/home1", ""), headers) } + + override fun pageListRequest(chapter: SChapter): Request { + if (chapter.url.startsWith("http")) { + return GET(chapter.url.replace("/home1", ""), headers) + } + + return GET(baseUrl + chapter.url.replace("/home1", ""), headers) + } } 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 65fd2885b..a658a2f66 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 @@ -63,7 +63,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("CAT-translator", "https://cats-translator.com/manga", "th", className = "CatTranslator", overrideVersionCode = 2), SingleLang("Cat300", "https://cat300.com", "th", isNsfw = true, className = "Cat300", overrideVersionCode = 1), SingleLang("CatOnHeadTranslations", "https://catonhead.com", "en", overrideVersionCode = 2), - SingleLang("Cerise Scan", "https://cerisescan.com/home1", "pt-BR", pkgName = "cerisescans", isNsfw = true, overrideVersionCode = 6), + SingleLang("Cerise Scan", "https://cerisescan.com", "pt-BR", pkgName = "cerisescans", isNsfw = true, overrideVersionCode = 7), SingleLang("Chibi Manga", "https://www.cmreader.info", "en", overrideVersionCode = 1), SingleLang("Clover Manga", "https://clover-manga.com", "tr", overrideVersionCode = 2), SingleLang("Coco Rip", "https://cocorip.net", "es"),