From d603c813cdd4d473469606c76f0aed6b4a6b4c7d Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:44:09 -0300 Subject: [PATCH] Add a new source to MangaThemesia (#17458) Add a new source to MangaThemesia. --- .../sssscanlator/src/SSSScanlator.kt | 20 +++++++++++++++++++ .../mangathemesia/MangaThemesiaGenerator.kt | 1 + 2 files changed, 21 insertions(+) create mode 100644 multisrc/overrides/mangathemesia/sssscanlator/src/SSSScanlator.kt diff --git a/multisrc/overrides/mangathemesia/sssscanlator/src/SSSScanlator.kt b/multisrc/overrides/mangathemesia/sssscanlator/src/SSSScanlator.kt new file mode 100644 index 000000000..cc4c69dae --- /dev/null +++ b/multisrc/overrides/mangathemesia/sssscanlator/src/SSSScanlator.kt @@ -0,0 +1,20 @@ +package eu.kanade.tachiyomi.extension.pt.sssscanlator + +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 SSSScanlator : MangaThemesia( + "SSSScanlator", + "https://sssscanlator.com", + "pt-BR", + dateFormat = SimpleDateFormat("MMMMM dd, 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/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index 5e48fbd17..7a0b4fa44 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 @@ -113,6 +113,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Shea Manga", "https://sheakomik.com", "id", overrideVersionCode = 4), SingleLang("Silence Scan", "https://silencescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 5), SingleLang("Snudae Scans", "https://snudaescans.com", "en", isNsfw = true, className = "BatotoScans", overrideVersionCode = 1), + SingleLang("SSSScanlator", "https://sssscanlator.com", "pt-BR"), SingleLang("Starlight Scan", "https://starligthscan.com", "pt-BR", isNsfw = true), SingleLang("Summer Fansub", "https://smmr.in", "pt-BR", isNsfw = true), SingleLang("Surya Scans", "https://suryascans.com", "en"),