21 lines
556 B
Kotlin
21 lines
556 B
Kotlin
|
package eu.kanade.tachiyomi.extension.pt.zeroscan
|
||
|
|
||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||
|
import okhttp3.OkHttpClient
|
||
|
import java.text.SimpleDateFormat
|
||
|
import java.util.Locale
|
||
|
import java.util.concurrent.TimeUnit
|
||
|
|
||
|
class ZeroScan : Madara(
|
||
|
"Zero Scan",
|
||
|
"https://zeroscan.com.br",
|
||
|
"pt-BR",
|
||
|
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR"))
|
||
|
) {
|
||
|
|
||
|
override val client: OkHttpClient = super.client.newBuilder()
|
||
|
.rateLimit(1, 2, TimeUnit.SECONDS)
|
||
|
.build()
|
||
|
}
|