changed rate limit to 2/sec (#6122)
This commit is contained in:
parent
e0b0dea7d1
commit
addce58067
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 104
|
||||
extVersionCode = 105
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue