From f60fdb5ce144fb157ad09b7d04585b17aeec59ee Mon Sep 17 00:00:00 2001 From: KirinRaikage Date: Wed, 15 Nov 2023 17:27:52 +0100 Subject: [PATCH] FR-Scan: Fix chapters not found (#18982) --- multisrc/overrides/madara/frdashscan/src/FRScan.kt | 12 +++++++++++- .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/multisrc/overrides/madara/frdashscan/src/FRScan.kt b/multisrc/overrides/madara/frdashscan/src/FRScan.kt index eb270757e..6b8f17c25 100644 --- a/multisrc/overrides/madara/frdashscan/src/FRScan.kt +++ b/multisrc/overrides/madara/frdashscan/src/FRScan.kt @@ -1,7 +1,17 @@ package eu.kanade.tachiyomi.extension.fr.frdashscan import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import okhttp3.OkHttpClient import java.text.SimpleDateFormat import java.util.Locale +import java.util.concurrent.TimeUnit -class FRScan : Madara("FR-Scan", "https://fr-scan.com", "fr", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.FRANCE)) +class FRScan : Madara("FR-Scan", "https://fr-scan.com", "fr", dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale.FRANCE)) { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(1, 2, TimeUnit.SECONDS) + .build() + + override val useNewChapterEndpoint = 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 f97f0df12..42b8c99e4 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 @@ -111,7 +111,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Flex Tape Scans", "https://flextapescans.com", "en", isNsfw = true), SingleLang("Flower Manga", "https://flowermanga.com", "pt-BR"), SingleLang("Fox White", "https://foxwhite.com.br", "pt-BR"), - SingleLang("FR-Scan", "https://fr-scan.com", "fr", pkgName = "frdashscan", className = "FRScan", overrideVersionCode = 3), + SingleLang("FR-Scan", "https://fr-scan.com", "fr", pkgName = "frdashscan", className = "FRScan", overrideVersionCode = 4), SingleLang("Free Manga", "https://freemanga.me", "en", isNsfw = true, overrideVersionCode = 3), SingleLang("Free Manhwa", "https://manhwas.com", "en", isNsfw = false), SingleLang("FreeMangaTop", "https://freemangatop.com", "en", overrideVersionCode = 2),