diff --git a/multisrc/overrides/madara/astrumscans/src/AstrumScans.kt b/multisrc/overrides/madara/astrumscans/src/AstrumScans.kt new file mode 100644 index 000000000..5c994d76a --- /dev/null +++ b/multisrc/overrides/madara/astrumscans/src/AstrumScans.kt @@ -0,0 +1,24 @@ +package eu.kanade.tachiyomi.extension.pt.astrumscans + +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 AstrumScans : Madara( + "Astrum Scans", + "https://astrumscans.xyz", + "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 + + override val mangaSubString = "series" +} diff --git a/multisrc/overrides/madara/maidscan/src/MaidScan.kt b/multisrc/overrides/madara/maidscan/src/MaidScan.kt new file mode 100644 index 000000000..2ea8073d0 --- /dev/null +++ b/multisrc/overrides/madara/maidscan/src/MaidScan.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.maidscan + +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 MaidScan : Madara( + "Maid Scan", + "https://maidscan.com.br", + "pt-BR", + SimpleDateFormat("dd 'de' MMMMM 'de' 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 a20595c0c..9fa4c01ae 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 @@ -44,6 +44,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4), SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 2), SingleLang("Astral-Manga", "https://astral-manga.fr", "fr", className = "AstralManga"), + SingleLang("Astrum Scans", "https://astrumscans.xyz", "pt-BR", isNsfw = true), SingleLang("Atikrost", "https://atikrost.com", "tr", overrideVersionCode = 1), SingleLang("AZManhwa", "https://azmanhwa.net", "en"), SingleLang("Azora", "https://azoranov.com", "ar", overrideVersionCode = 6), @@ -185,6 +186,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Lord Manga", "https://lordmanga.com", "en"), SingleLang("LuxManga", "https://luxmanga.com", "en"), SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1), + SingleLang("Maid Scan", "https://maidscan.com.br", "pt-BR"), SingleLang("Manga Action", "https://mangaaction.com", "en", overrideVersionCode = 2), SingleLang("Manga Bilgini", "https://mangabilgini.com", "tr"), SingleLang("Manga Bin", "https://mangabin.com", "en", overrideVersionCode = 1),