From e710fee5c5052ca086e9254f57c305b6030eea9e Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Fri, 14 Jun 2024 02:33:14 -0500 Subject: [PATCH] AquaScans: Fix cloudflare on chapter open (#3554) fix cf --- src/en/manhwaworld/build.gradle | 2 +- .../extension/en/manhwaworld/ManhwaWorld.kt | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/en/manhwaworld/build.gradle b/src/en/manhwaworld/build.gradle index 2d4ac66c8..6332956b3 100644 --- a/src/en/manhwaworld/build.gradle +++ b/src/en/manhwaworld/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.ManhwaWorld' themePkg = 'madara' baseUrl = 'https://aquascans.com' - overrideVersionCode = 1 + overrideVersionCode = 2 } apply from: "$rootDir/common.gradle" diff --git a/src/en/manhwaworld/src/eu/kanade/tachiyomi/extension/en/manhwaworld/ManhwaWorld.kt b/src/en/manhwaworld/src/eu/kanade/tachiyomi/extension/en/manhwaworld/ManhwaWorld.kt index 5432baef6..df4bf31e0 100644 --- a/src/en/manhwaworld/src/eu/kanade/tachiyomi/extension/en/manhwaworld/ManhwaWorld.kt +++ b/src/en/manhwaworld/src/eu/kanade/tachiyomi/extension/en/manhwaworld/ManhwaWorld.kt @@ -1,7 +1,19 @@ package eu.kanade.tachiyomi.extension.en.manhwaworld import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimitHost +import okhttp3.HttpUrl.Companion.toHttpUrl -class ManhwaWorld : Madara("AQUA Scans", "https://aquascans.com", "en") { +class ManhwaWorld : Madara( + "AQUA Scans", + "https://aquascans.com", + "en", +) { override val id = 8857833474626810640 + + override val client = super.client.newBuilder() + .rateLimitHost(baseUrl.toHttpUrl(), 3, 1) + .build() + + override val chapterUrlSuffix = "" }