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:
parent
6588476961
commit
8a3127a139
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue