From dfd2b6cda1b4a568de4d9bc21289e6bc37363362 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:48:13 -0300 Subject: [PATCH] Add a new source to Madara (#18369) Add a new source to Madara. --- .../madara/taberumangas/src/TaberuMangas.kt | 22 +++++++++++++++++++ .../multisrc/madara/MadaraGenerator.kt | 1 + 2 files changed, 23 insertions(+) create mode 100644 multisrc/overrides/madara/taberumangas/src/TaberuMangas.kt diff --git a/multisrc/overrides/madara/taberumangas/src/TaberuMangas.kt b/multisrc/overrides/madara/taberumangas/src/TaberuMangas.kt new file mode 100644 index 000000000..ae5e4232a --- /dev/null +++ b/multisrc/overrides/madara/taberumangas/src/TaberuMangas.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.taberumangas + +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 TaberuMangas : Madara( + "Taberu Mangás", + "https://taberu.org", + "pt-BR", + SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")), +) { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(1, 2, TimeUnit.SECONDS) + .build() + + override val useNewChapterEndpoint = true +} 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 a658a2f66..4deaa3085 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 @@ -453,6 +453,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Summanga", "https://summanga.com", "en", isNsfw = true), SingleLang("Sunshine Butterfly Scans", "https://sunshinebutterflyscan.com", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Sweet Time Scan", "https://sweetscan.net", "pt-BR", overrideVersionCode = 2), + SingleLang("Taberu Mangás", "https://taberu.org", "pt-BR", className = "TaberuMangas", isNsfw = true), SingleLang("Tankou Hentai", "https://tankouhentai.com", "pt-BR", isNsfw = true), SingleLang("TappyToon.Net", "https://tappytoon.net", "en", className = "Tappytoonnet"), SingleLang("Tatakae Scan", "https://tatakaescan.com", "pt-BR", isNsfw = true, overrideVersionCode = 2),