20 lines
704 B
Kotlin
20 lines
704 B
Kotlin
|
package eu.kanade.tachiyomi.extension.id.komikindoco
|
||
|
|
||
|
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
|
||
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||
|
import okhttp3.OkHttpClient
|
||
|
import java.util.concurrent.TimeUnit
|
||
|
|
||
|
class KomikindoCo : WPMangaStream("KomikIndo.co", "https://komikindo.co", "id") {
|
||
|
// Formerly "Komikindo.co"
|
||
|
override val id = 734619124437406170
|
||
|
|
||
|
private val rateLimitInterceptor = RateLimitInterceptor(4)
|
||
|
|
||
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||
|
.connectTimeout(10, TimeUnit.SECONDS)
|
||
|
.readTimeout(30, TimeUnit.SECONDS)
|
||
|
.addNetworkInterceptor(rateLimitInterceptor)
|
||
|
.build()
|
||
|
}
|