From 8a591393ac87e074418b804fee25dd6d455eee81 Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Sun, 20 Jun 2021 09:38:21 -0300 Subject: [PATCH] Add two new sources to Madara. (#7757) --- .../madara/geassscan/src/GeassScan.kt | 24 +++++++++++++++++++ .../madara/visbellum/src/Visbellum.kt | 24 +++++++++++++++++++ .../multisrc/madara/MadaraGenerator.kt | 2 ++ 3 files changed, 50 insertions(+) create mode 100644 multisrc/overrides/madara/geassscan/src/GeassScan.kt create mode 100644 multisrc/overrides/madara/visbellum/src/Visbellum.kt diff --git a/multisrc/overrides/madara/geassscan/src/GeassScan.kt b/multisrc/overrides/madara/geassscan/src/GeassScan.kt new file mode 100644 index 000000000..a3735fdec --- /dev/null +++ b/multisrc/overrides/madara/geassscan/src/GeassScan.kt @@ -0,0 +1,24 @@ +package eu.kanade.tachiyomi.extension.pt.geassscan + +import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.multisrc.madara.Madara +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class GeassScan : Madara( + "Geass Scan", + "https://geassscan.xyz", + "pt-BR", + SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = super.client.newBuilder() + .addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS)) + .build() + + override val altName: String = "Nome alternativo: " + + override fun popularMangaSelector() = "div.page-item-detail.manga" +} diff --git a/multisrc/overrides/madara/visbellum/src/Visbellum.kt b/multisrc/overrides/madara/visbellum/src/Visbellum.kt new file mode 100644 index 000000000..275b31d09 --- /dev/null +++ b/multisrc/overrides/madara/visbellum/src/Visbellum.kt @@ -0,0 +1,24 @@ +package eu.kanade.tachiyomi.extension.pt.visbellum + +import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.multisrc.madara.Madara +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class Visbellum : Madara( + "Visbellum", + "https://visbellum.com", + "pt-BR", + SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = super.client.newBuilder() + .addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS)) + .build() + + override val altName: String = "Nome alternativo: " + + override fun popularMangaSelector() = "div.page-item-detail.manga" +} 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 eb3b3e093..571e7559e 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 @@ -74,6 +74,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Furio Scans", "https://furioscans.com", "pt-BR", overrideVersionCode = 2), SingleLang("FĂȘnix Scanlator", "https://fenixscanlator.xyz", "pt-BR", pkgName = "fenixscanlator", className = "FenixScanlator", overrideVersionCode = 1), SingleLang("GalaxyDegenScans", "https://gdegenscans.xyz/", "en", overrideVersionCode = 1), + SingleLang("Geass Scan", "https://geassscan.xyz", "pt-BR"), SingleLang("Glory Scans", "https://gloryscan.com", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Graze Scans", "https://grazescans.com/", "en", overrideVersionCode = 1), SingleLang("GuncelManga", "https://guncelmanga.com", "tr"), @@ -261,6 +262,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Unemployed Scans", "https://unemployedscans.com", "en", overrideVersionCode = 1), SingleLang("Uyuyan Balik", "https://uyuyanbalik.com/", "tr"), SingleLang("Vanguard Bun", "https://vanguardbun.com/", "en", overrideVersionCode = 1), + SingleLang("Visbellum", "https://visbellum.com", "pt-BR"), SingleLang("Volkan Scans", "https://volkanscans.com", "en", overrideVersionCode = 1), SingleLang("Wakamics", "https://wakamics.net", "en"), SingleLang("Wakascan", "https://wakascan.com", "fr", overrideVersionCode = 1),