diff --git a/multisrc/overrides/madara/zeroscan/src/ZeroScan.kt b/multisrc/overrides/madara/zeroscan/src/ZeroScan.kt new file mode 100644 index 000000000..7733dfcac --- /dev/null +++ b/multisrc/overrides/madara/zeroscan/src/ZeroScan.kt @@ -0,0 +1,20 @@ +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() +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index d1fc4ca3d..17c3a2903 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -451,6 +451,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("YonaBar", "https://yonabar.com", "ar", isNsfw = true, overrideVersionCode = 2), SingleLang("YugenMangas", "https://yugenmangas.com.br", "pt-BR"), SingleLang("Yuri Verso", "https://yuri.live", "pt-BR", overrideVersionCode = 3), + SingleLang("Zero Scan", "https://zeroscan.com.br", "pt-BR", isNsfw = true), SingleLang("Zinmanga", "https://zinmanga.com", "en", overrideVersionCode = 1), SingleLang("Zinmanhwa", "https://zinmanhwa.com", "en"), SingleLang("ZuttoManga", "https://zuttomanga.com", "en", overrideVersionCode = 1),