diff --git a/multisrc/overrides/wpmangareader/yanpfansub/src/YANPFansub.kt b/multisrc/overrides/wpmangareader/yanpfansub/src/YANPFansub.kt new file mode 100644 index 000000000..1653a9c2b --- /dev/null +++ b/multisrc/overrides/wpmangareader/yanpfansub/src/YANPFansub.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.yanpfansub + +import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class YANPFansub : WPMangaReader( + "YANP Fansub", + "https://yanpfansub.com", + "pt-BR", + dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = network.cloudflareClient.newBuilder() + .addNetworkInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS)) + .build() + + override val altName = "Nome alternativo: " +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index f8c1df34b..f5f857e10 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -42,6 +42,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 1), SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Silence Scan", "https://silencescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 5), + SingleLang("YANP Fansub", "https://yanpfansub.com", "pt-BR", isNsfw = true) ) companion object {