From 010d7959c0cd1c54cd8902c23d7d325877b4d5e2 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Sun, 2 Jul 2023 19:47:57 -0300 Subject: [PATCH] Add two new sources to Madara (#16989) * Add two new sources to Madara. * Add missing trailing comma. --- .../madara/dessertscan/src/DessertScan.kt | 20 +++++++++++++++++ .../nocturnesummer/src/NocturneSummer.kt | 22 +++++++++++++++++++ .../multisrc/madara/MadaraGenerator.kt | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 multisrc/overrides/madara/dessertscan/src/DessertScan.kt create mode 100644 multisrc/overrides/madara/nocturnesummer/src/NocturneSummer.kt diff --git a/multisrc/overrides/madara/dessertscan/src/DessertScan.kt b/multisrc/overrides/madara/dessertscan/src/DessertScan.kt new file mode 100644 index 000000000..3282f9386 --- /dev/null +++ b/multisrc/overrides/madara/dessertscan/src/DessertScan.kt @@ -0,0 +1,20 @@ +package eu.kanade.tachiyomi.extension.pt.dessertscan + +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 DessertScan : Madara( + "Dessert Scan", + "https://cabaredowatame.site", + "pt-BR", + SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")), +) { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(1, 2, TimeUnit.SECONDS) + .build() +} diff --git a/multisrc/overrides/madara/nocturnesummer/src/NocturneSummer.kt b/multisrc/overrides/madara/nocturnesummer/src/NocturneSummer.kt new file mode 100644 index 000000000..e5a6d6a72 --- /dev/null +++ b/multisrc/overrides/madara/nocturnesummer/src/NocturneSummer.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.nocturnesummer + +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 NocturneSummer : Madara( + "Nocturne Summer", + "https://nocsummer.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 253f1883a..227b58431 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 @@ -78,6 +78,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("DapRob", "https://daprob.com", "es"), SingleLang("Dark Scans", "https://darkscans.com", "en"), SingleLang("Decadence Scans", "https://reader.decadencescans.com", "en", isNsfw = true, overrideVersionCode = 2), + SingleLang("Dessert Scan", "https://cabaredowatame.site", "pt-BR", isNsfw = true), SingleLang("DiamondFansub", "https://diamondfansub.com", "tr", overrideVersionCode = 1), SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1), SingleLang("Doodmanga", "https://www.doodmanga.com", "th"), @@ -329,6 +330,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Ninja Scan", "https://ninjascan.xyz", "pt-BR", overrideVersionCode = 1), SingleLang("Nitro Scans", "https://nitroscans.com", "en"), SingleLang("No Index Scan", "https://noindexscan.com", "pt-BR", isNsfw = true), + SingleLang("Nocturne Summer", "https://nocsummer.com.br", "pt-BR", isNsfw = true), SingleLang("Noblesse Translations", "https://www.noblessetranslations.com", "es"), SingleLang("NovelCrow", "https://novelcrow.com", "en", isNsfw = true), SingleLang("NovelMic", "https://novelmic.com", "en", overrideVersionCode = 1),