From 8e00e14dc20382ffc31fceb3326c6dcd391ba7a3 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Thu, 8 Sep 2022 18:41:40 -0300 Subject: [PATCH] Add two new sources to Madara. (#13406) --- .../overrides/madara/izakaya/src/Izakaya.kt | 22 +++++++++++++++++++ .../madara/yaoicomics/src/YaoiComics.kt | 22 +++++++++++++++++++ .../multisrc/madara/MadaraGenerator.kt | 2 ++ 3 files changed, 46 insertions(+) create mode 100644 multisrc/overrides/madara/izakaya/src/Izakaya.kt create mode 100644 multisrc/overrides/madara/yaoicomics/src/YaoiComics.kt diff --git a/multisrc/overrides/madara/izakaya/src/Izakaya.kt b/multisrc/overrides/madara/izakaya/src/Izakaya.kt new file mode 100644 index 000000000..7d816d413 --- /dev/null +++ b/multisrc/overrides/madara/izakaya/src/Izakaya.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.izakaya + +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 Izakaya : Madara( + "Izakaya", + "https://leitorizakaya.net", + "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/yaoicomics/src/YaoiComics.kt b/multisrc/overrides/madara/yaoicomics/src/YaoiComics.kt new file mode 100644 index 000000000..a806cc994 --- /dev/null +++ b/multisrc/overrides/madara/yaoicomics/src/YaoiComics.kt @@ -0,0 +1,22 @@ +package eu.kanade.tachiyomi.extension.pt.yaoicomics + +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 YaoiComics : Madara( + "Yaoi Comics", + "https://ycscan.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 b3bbcca5b..6986dc9e1 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 @@ -162,6 +162,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("IsekaiScan.eu (unoriginal)", "https://isekaiscan.eu", "en", className = "IsekaiscanEu"), SingleLang("IsekaiScanManga (unoriginal)", "https://isekaiscanmanga.com", "en", className = "IsekaiScanManga", overrideVersionCode = 1), SingleLang("Its Your Right Manhua", "https://itsyourightmanhua.com", "en", className = "ItsYourRightManhua", overrideVersionCode = 2), + SingleLang("Izakaya", "https://leitorizakaya.net", "pt-BR", isNsfw = true), SingleLang("JaiminisBox.net", "https://jaiminisbox.net", "en", className = "Jaiminisboxnet"), SingleLang("Jiangzaitoon", "https://jiangzaitoon.biz", "tr", isNsfw = true, overrideVersionCode = 1), SingleLang("Jiro Comics", "https://jirocomics.com", "en", isNsfw = true), @@ -491,6 +492,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("WuxiaWorld", "https://wuxiaworld.site", "en", overrideVersionCode = 1), SingleLang("XManga", "https://xmanga.io", "en", isNsfw = true), SingleLang("XuN Scans", "https://xunscans.xyz", "en", overrideVersionCode = 3), + SingleLang("Yaoi Comics", "https://ycscan.com", "pt-BR", isNsfw = true), SingleLang("YANP Fansub", "https://melhorcasal.com", "pt-BR", isNsfw = true), SingleLang("Yaoi Hentai", "https://yaoihentai.me", "en", isNsfw = true), SingleLang("Yaoi Toshokan", "https://yaoitoshokan.net", "pt-BR", isNsfw = true, overrideVersionCode = 4),