From c0ad7b84595b9da3a7d1bf819578326d9bbdf96b Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Sat, 19 Aug 2023 17:03:28 -0300 Subject: [PATCH] Add a new source to MangaThemesia (#17603) Add a new source to MangaThemesia. --- .../arkhamscan/src/ArkhamScan.kt | 22 +++++++++++++++++++ .../mangathemesia/MangaThemesiaGenerator.kt | 1 + 2 files changed, 23 insertions(+) create mode 100644 multisrc/overrides/mangathemesia/arkhamscan/src/ArkhamScan.kt diff --git a/multisrc/overrides/mangathemesia/arkhamscan/src/ArkhamScan.kt b/multisrc/overrides/mangathemesia/arkhamscan/src/ArkhamScan.kt new file mode 100644 index 000000000..3cb503891 --- /dev/null +++ b/multisrc/overrides/mangathemesia/arkhamscan/src/ArkhamScan.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.arkhamscan + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class ArkhamScan : MangaThemesia( + "Arkham Scan", + "https://arkhamscan.com", + "pt-BR", + dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), +) { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(1, 2, TimeUnit.SECONDS) + .build() + + override val altNamePrefix = "Nomes alternativos: " +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 9f4a4fdce..203f6358d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -20,6 +20,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { MultiLang("Miau Scan", "https://miauscans.com", listOf("es", "pt-BR"), overrideVersionCode = 1), SingleLang("Animated Glitched Scans", "https://anigliscans.com", "en"), SingleLang("Arena Scans", "https://arenascans.net", "en", overrideVersionCode = 1), + SingleLang("Arkham Scan", "https://arkhamscan.com", "pt-BR"), SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1), SingleLang("Babel Wuxia", "https://babelwuxia.com", "en", overrideVersionCode = 1), SingleLang("Banana-Scan", "https://banana-scan.com", "fr", className = "BananaScan", isNsfw = true),