diff --git a/multisrc/overrides/madara/akumanotenshi/src/AkumaNoTenshi.kt b/multisrc/overrides/madara/akumanotenshi/src/AkumaNoTenshi.kt new file mode 100644 index 000000000..4abc3591a --- /dev/null +++ b/multisrc/overrides/madara/akumanotenshi/src/AkumaNoTenshi.kt @@ -0,0 +1,20 @@ +package eu.kanade.tachiyomi.extension.pt.akumanotenshi + +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 AkumaNoTenshi : Madara( + "Akuma no Tenshi", + "https://akumanotenshi.com", + "pt-BR", + SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = super.client.newBuilder() + .addInterceptor(RateLimitInterceptor(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 bbb474670..ec6d81208 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 @@ -34,6 +34,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Aiin Scan", "https://aiinscan.xyz", "pt-BR"), SingleLang("AiYuManga", "https://aiyumangascanlation.com", "es"), SingleLang("AkuManga", "https://akumanga.com", "ar", overrideVersionCode = 1), + SingleLang("Akuma no Tenshi", "https://akumanotenshi.com", "pt-BR", className = "AkumaNoTenshi"), SingleLang("AllPornComic", "https://allporncomic.com", "en", isNsfw = true), SingleLang("AllTopManga", "https://alltopmanga.com", "en", isNsfw = true), SingleLang("Anikiga", "https://anikiga.com", "tr"),