bump rate limiting for MH (#6540)

* Update build.gradle

* Update MangaHost.kt

make rate limiting harsher
This commit is contained in:
Carlos 2021-04-14 07:59:23 -04:00 committed by GitHub
parent a62484dbb3
commit 42a1284781
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 = 'Mangá Host'
pkgNameSuffix = 'pt.mangahost'
extClass = '.MangaHost'
extVersionCode = 21
extVersionCode = 22
libVersion = '1.2'
}

View File

@ -41,7 +41,7 @@ class MangaHost : ParsedHttpSource() {
.addInterceptor(::rateLimitIntercept)
.build()
private val rateLimitInterceptor = RateLimitInterceptor(1, 1, TimeUnit.SECONDS)
private val rateLimitInterceptor = RateLimitInterceptor(1, 3, TimeUnit.SECONDS)
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("Accept", ACCEPT)