From e3d27184ae12bcb2f845369ae15eb8220520c8a5 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Mon, 17 Apr 2023 15:45:09 -0300 Subject: [PATCH] Add three new sources to Madara (#16081) Add three new sources to Madara. --- .../madara/cookietoon/src/CookieToon.kt | 22 +++++++++++++++++++ .../moonwitchinlove/src/MoonWitchInLove.kt | 22 +++++++++++++++++++ .../madara/peachscan/src/PeachScan.kt | 22 +++++++++++++++++++ .../multisrc/madara/MadaraGenerator.kt | 3 +++ 4 files changed, 69 insertions(+) create mode 100644 multisrc/overrides/madara/cookietoon/src/CookieToon.kt create mode 100644 multisrc/overrides/madara/moonwitchinlove/src/MoonWitchInLove.kt create mode 100644 multisrc/overrides/madara/peachscan/src/PeachScan.kt diff --git a/multisrc/overrides/madara/cookietoon/src/CookieToon.kt b/multisrc/overrides/madara/cookietoon/src/CookieToon.kt new file mode 100644 index 000000000..7ce3fac90 --- /dev/null +++ b/multisrc/overrides/madara/cookietoon/src/CookieToon.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.cookietoon + +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 CookieToon : Madara( + "CookieToon", + "https://cookietoon.online", + "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/overrides/madara/moonwitchinlove/src/MoonWitchInLove.kt b/multisrc/overrides/madara/moonwitchinlove/src/MoonWitchInLove.kt new file mode 100644 index 000000000..79372cad6 --- /dev/null +++ b/multisrc/overrides/madara/moonwitchinlove/src/MoonWitchInLove.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.moonwitchinlove + +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 MoonWitchInLove : Madara( + "Moon Witch In Love", + "https://moonwitchinlovescan.com", + "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/overrides/madara/peachscan/src/PeachScan.kt b/multisrc/overrides/madara/peachscan/src/PeachScan.kt new file mode 100644 index 000000000..85051217f --- /dev/null +++ b/multisrc/overrides/madara/peachscan/src/PeachScan.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.peachscan + +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 PeachScan : Madara( + "Peach Scan", + "https://www.peachscan.com", + "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 1749ef9ac..f7209c4f0 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 @@ -70,6 +70,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Comics Valley", "https://comicsvalley.com", "hi", isNsfw = true, overrideVersionCode = 1), SingleLang("ComicsWorld", "https://comicsworld.in", "hi"), SingleLang("Comictoon", "https://comictoonthaith-new.com", "th", isNsfw = true), + SingleLang("CookieToon", "https://cookietoon.online", "pt-BR"), SingleLang("Cookie Kiara", "https://18.kiara.cool", "en", isNsfw = true), SingleLang("CopyPasteScan", "https://copypastescan.xyz", "es", overrideVersionCode = 1), SingleLang("Cronos Scan", "https://cronosscan.net", "pt-BR", overrideVersionCode = 1), @@ -312,6 +313,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("MMScans", "https://mm-scans.org", "en", overrideVersionCode = 4), SingleLang("Momo no Hana Scan", "https://momonohanascan.com", "pt-BR", className = "MomoNoHanaScan", overrideVersionCode = 1), SingleLang("MonarcaManga", "https://monarcamanga.com", "es"), + SingleLang("Moon Witch In Love", "https://moonwitchinlovescan.com", "pt-BR"), SingleLang("Mortals Groove", "https://mortalsgroove.com", "en", overrideVersionCode = 1), SingleLang("MR Yaoi Fansub", "https://mrbenne.com", "pt-BR", isNsfw = true, className = "MrYaoiFansub", overrideVersionCode = 1), SingleLang("Muctau", "https://bibimanga.com", "en", isNsfw = true, overrideVersionCode = 4), @@ -332,6 +334,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Novels Town", "https://novelstown.cyou", "ar"), SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true), SingleLang("Painful Nightz Scan", "https://painfulnightz.com", "en", overrideVersionCode = 1), + SingleLang("Peach Scan", "https://www.peachscan.com", "pt-BR", isNsfw = true), SingleLang("Petrotechsociety", "https://www.petrotechsociety.org", "en", isNsfw = true), SingleLang("Pian Manga", "https://pianmanga.me", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Pirulito Rosa", "https://pirulitorosa.site", "pt-BR", isNsfw = true),