Increase rate limiting in MangásProject. (#5950)
This commit is contained in:
parent
60d4529dd6
commit
3797d52d60
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'mangásPROJECT'
|
||||
pkgNameSuffix = 'pt.mangasproject'
|
||||
extClass = '.MangasProjectFactory'
|
||||
extVersionCode = 17
|
||||
extVersionCode = 18
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ abstract class MangasProject(
|
|||
|
||||
// Sometimes the site is slow.
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.addInterceptor(RateLimitInterceptor(30, 1, TimeUnit.MINUTES))
|
||||
.addInterceptor(RateLimitInterceptor(5, 1, TimeUnit.SECONDS))
|
||||
.connectTimeout(1, TimeUnit.MINUTES)
|
||||
.readTimeout(1, TimeUnit.MINUTES)
|
||||
.writeTimeout(1, TimeUnit.MINUTES)
|
||||
|
|
Loading…
Reference in New Issue