17 lines
631 B
Kotlin
17 lines
631 B
Kotlin
package eu.kanade.tachiyomi.extension.en.resetscans
|
|
|
|
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
|
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
|
import okhttp3.OkHttpClient
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
class ResetScans : WPMangaStream("Reset Scans", "https://reset-scans.com", "en") {
|
|
private val rateLimitInterceptor = RateLimitInterceptor(4)
|
|
|
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
|
.connectTimeout(10, TimeUnit.SECONDS)
|
|
.readTimeout(30, TimeUnit.SECONDS)
|
|
.addNetworkInterceptor(rateLimitInterceptor)
|
|
.build()
|
|
}
|