diff --git a/multisrc/overrides/madara/arthurscan/src/ArthurScan.kt b/multisrc/overrides/madara/arthurscan/src/ArthurScan.kt new file mode 100644 index 000000000..fcdf264ba --- /dev/null +++ b/multisrc/overrides/madara/arthurscan/src/ArthurScan.kt @@ -0,0 +1,52 @@ +package eu.kanade.tachiyomi.extension.pt.arthurscan + +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 ArthurScan : Madara( + "Arthur Scan", + "https://arthurscan.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 fun popularMangaSelector() = "div.page-item-detail.manga" + + override val altName: String = "Nome alternativo: " + + // [...document.querySelectorAll('div.genres li a')] + // .map(x => `Genre("${x.innerText.slice(1, -4).trim()}", "${x.href.replace(/.*-genre\/(.*)\//, '$1')}")`) + // .join(',\n') + override fun getGenreList(): List = listOf( + Genre("Ação", "acao"), + Genre("Artes Marciais", "artes-marciais"), + Genre("Aventura", "aventura"), + Genre("Comédia", "comedia"), + Genre("Drama", "drama"), + Genre("Fantasia", "fantasia"), + Genre("Harém", "harem"), + Genre("Histórico", "historico"), + Genre("Manhua", "manhua"), + Genre("Manhwa", "manhwa"), + Genre("Mistério", "misterio"), + Genre("Reencarnação", "reencarnacao"), + Genre("Romance", "romance"), + Genre("Sci-fi", "sci-fi"), + Genre("Seinen", "seinen"), + Genre("Shounen", "shounen"), + Genre("Slice of Life", "slice-of-life"), + Genre("Sobrenatural", "sobrenatural"), + Genre("Vida Escolar", "vida-escolar"), + Genre("Web Comic", "web-comic"), + Genre("Web Novel", "web-novel"), + Genre("Webtoon", "webtoon") + ) +} diff --git a/multisrc/overrides/madara/modescanlator/src/ModeScanlator.kt b/multisrc/overrides/madara/modescanlator/src/ModeScanlator.kt new file mode 100644 index 000000000..f7b109f80 --- /dev/null +++ b/multisrc/overrides/madara/modescanlator/src/ModeScanlator.kt @@ -0,0 +1,49 @@ +package eu.kanade.tachiyomi.extension.pt.modescanlator + +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 ModeScanlator : Madara( + "Mode Scanlator", + "https://modescanlator.com", + "pt-BR", + SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")) +) { + + override val client: OkHttpClient = super.client.newBuilder() + .addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS)) + .build() + + override fun popularMangaSelector() = "div.page-item-detail.manga" + + override val altName: String = "Nome alternativo: " + + // [...document.querySelectorAll('div.c-genres-block div.genres li a')] + // .map(x => `Genre("${x.innerText.trim().slice(0, -4)}", "${x.href.replace(/.*generos\/(.*)\//, '$1')}")`) + // .join(',\n') + override fun getGenreList(): List = listOf( + Genre("Ação", "acao"), + Genre("Artes Marciais", "artes-marciais"), + Genre("Aventura", "aventura"), + Genre("Comédia", "comedia"), + Genre("Drama", "drama"), + Genre("Ecchi", "ecchi"), + Genre("Esportes", "esportes"), + Genre("Fantasia", "fantasia"), + Genre("Harem", "harem"), + Genre("Histórico", "historico"), + Genre("Horror", "horror"), + Genre("Manga", "manga"), + Genre("Manhua", "manhua"), + Genre("Manhwa", "manhwa"), + Genre("Psicológico", "psicologico"), + Genre("Romance", "romance"), + Genre("Slice of Life", "slice-of-life"), + Genre("Webtoon", "webtoon"), + Genre("Zumbis", "zumbis") + ) +} 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 2d55de002..8d40b8dff 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 @@ -26,6 +26,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("ArazNovel", "https://www.araznovel.com", "tr"), SingleLang("Argos Scan", "https://argosscan.com", "pt-BR", overrideVersionCode = 1), SingleLang("Asgard Team", "https://www.asgard1team.com", "ar", overrideVersionCode = 1), + SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR"), SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 1), SingleLang("Atikrost", "https://atikrost.com", "tr"), SingleLang("ATM-Subs", "https://atm-subs.fr", "fr", className = "ATMSubs"), @@ -182,6 +183,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Miracle Scans", "https://miraclescans.com", "en"), SingleLang("Mixed Manga", "https://mixedmanga.com", "en"), SingleLang("MMScans", "https://mm-scans.com/", "en", overrideVersionCode = 1), + SingleLang("Mode Scanlator", "https://modescanlator.com", "pt-BR"), SingleLang("Mundo Wuxia", "https://mundowuxia.com", "es"), SingleLang("Mystical Merries", "https://mysticalmerries.com", "en"), SingleLang("Nazarick Scans", "https://nazarickscans.com", "en"),