Alessandro Jean 58e83d29cb
Make rate limit more harsher in Brazilian sources (#8208)
* Make rate limit more harsher in Brazilian single sources.

* Make rate limit more harsher in Brazilian multisrc sources.
2021-07-21 11:25:36 -04:00

23 lines
673 B
Kotlin

package eu.kanade.tachiyomi.extension.pt.argosscan
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class ArgosScan : Madara(
"Argos Scan",
"https://argosscan.com",
"pt-BR",
SimpleDateFormat("dd 'de' MMMM 'de' yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override fun popularMangaSelector() = "div.page-item-detail.manga"
}