[RU]Remanga rateLimitHost boost slow image after Many Requests (#14200)

* [RU]Remanga rateLimitHost boost slow image after Many Requests

* only confirmed
This commit is contained in:
Eshlender 2022-11-09 23:48:06 +05:00 committed by GitHub
parent 6a8cf260e1
commit 5f5fbf6ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 60
extVersionCode = 61
}
dependencies {

View File

@ -21,6 +21,7 @@ import eu.kanade.tachiyomi.extension.ru.remanga.dto.UserDto
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.asObservable
import eu.kanade.tachiyomi.network.asObservableSuccess
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import eu.kanade.tachiyomi.source.ConfigurableSource
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
@ -115,6 +116,8 @@ class Remanga : ConfigurableSource, HttpSource() {
}
override val client: OkHttpClient =
network.cloudflareClient.newBuilder()
.rateLimitHost("https://img3.reimg.org".toHttpUrl(), 2)
.rateLimitHost("https://img5.reimg.org".toHttpUrl(), 2)
.addInterceptor { imageContentTypeIntercept(it) }
.addInterceptor { authIntercept(it) }
.build()