From 0ee4d3acab22a60636329388736b61e80afacbd8 Mon Sep 17 00:00:00 2001 From: OncePunchedMan <64155117+OncePunchedMan@users.noreply.github.com> Date: Fri, 22 Jan 2021 03:30:59 +0000 Subject: [PATCH] change rate limiting from 4 requests/sec to 1 r/s (#5507) --- src/all/mangadex/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index c2ef1f17a..ec65d14ad 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangaDexFactory' - extVersionCode = 101 + extVersionCode = 102 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt index ba0eaa84f..a737df1fa 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt @@ -71,7 +71,7 @@ abstract class MangaDex( MangadexDescription(internalLang) } - private val rateLimitInterceptor = RateLimitInterceptor(4) + private val rateLimitInterceptor = RateLimitInterceptor(1) override val client: OkHttpClient = network.client.newBuilder() .addNetworkInterceptor(rateLimitInterceptor)