diff --git a/multisrc/overrides/wpmangareader/fusionscanlation/additional.gradle.kts b/multisrc/overrides/wpmangareader/fusionscanlation/additional.gradle.kts new file mode 100644 index 000000000..10beb8157 --- /dev/null +++ b/multisrc/overrides/wpmangareader/fusionscanlation/additional.gradle.kts @@ -0,0 +1,4 @@ + +dependencies { + implementation project(':lib-ratelimit') +} diff --git a/multisrc/overrides/wpmangareader/fusionscanlation/src/FusionScanlation.kt b/multisrc/overrides/wpmangareader/fusionscanlation/src/FusionScanlation.kt new file mode 100644 index 000000000..6448f3fad --- /dev/null +++ b/multisrc/overrides/wpmangareader/fusionscanlation/src/FusionScanlation.kt @@ -0,0 +1,18 @@ +package eu.kanade.tachiyomi.extension.es.fusionscanlation + +import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import okhttp3.OkHttpClient +import java.util.concurrent.TimeUnit +import java.text.SimpleDateFormat +import java.util.Locale + +class FusionScanlation : WPMangaReader("Fusion Scanlation", "https://fusionscanlation.com", "es", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es"))) { + private val rateLimitInterceptor = RateLimitInterceptor(1,2) + + override val client: OkHttpClient = network.cloudflareClient.newBuilder() + .connectTimeout(10, TimeUnit.SECONDS) + .readTimeout(30, TimeUnit.SECONDS) + .addNetworkInterceptor(rateLimitInterceptor) + .build() +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index 15284b34b..560b79004 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -34,7 +34,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("YugenMangas", "https://yugenmangas.com", "es"), SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true, overrideVersionCode = 1), SingleLang("Patatescans", "https://patatescans.com", "fr", isNsfw = true, overrideVersionCode = 1), - SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es"), + SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 1), SingleLang("Ace Scans", "https://acescans.xyz", "en"), )