changed rate limit to 2/sec (#6122)

This commit is contained in:
OncePunchedMan 2021-03-10 12:02:27 +01:00 committed by GitHub
parent e0b0dea7d1
commit addce58067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 104
extVersionCode = 105
libVersion = '1.2'
containsNsfw = true
}

View File

@ -1084,7 +1084,7 @@ class CoverInterceptor : Interceptor {
class MdRateLimitInterceptor : Interceptor {
private val coverRegex = Regex("""/images/.*\.jpg""")
private val baseInterceptor = RateLimitInterceptor(1)
private val baseInterceptor = RateLimitInterceptor(2)
override fun intercept(chain: Interceptor.Chain): Response =
if (chain.request().url().toString().contains(coverRegex))