fix: tweak zinchanmanga ratelimit (#11565)

* fix: tweak zinchanmanga ratelimit

* Update src/en/zinchanmanga/src/eu/kanade/tachiyomi/extension/en/zinchanmanga/ZinChanManga.kt

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* Update src/en/zinchanmanga/src/eu/kanade/tachiyomi/extension/en/zinchanmanga/ZinChanManga.kt

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
Alexander Chernov 2022-04-22 14:23:46 +01:00 committed by GitHub
parent 6588476961
commit 8a3127a139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'ZinChanManga' extName = 'ZinChanManga'
pkgNameSuffix = 'en.zinchanmanga' pkgNameSuffix = 'en.zinchanmanga'
extClass = '.ZinChanManga' extClass = '.ZinChanManga'
extVersionCode = 3 extVersionCode = 4
isNsfw = true isNsfw = true
} }

View File

@ -28,7 +28,8 @@ class ZinChanManga : HttpSource() {
private val apiClient by lazy { private val apiClient by lazy {
network.client.newBuilder() network.client.newBuilder()
.sslSocketFactory(ZinChanCert.factory, ZinChanCert.manager) .sslSocketFactory(ZinChanCert.factory, ZinChanCert.manager)
.addInterceptor(RateLimitInterceptor(2)).build() .addInterceptor(RateLimitInterceptor(5, 50))
.build()
} }
private val apiHeaders by lazy { private val apiHeaders by lazy {