Add two new sources to Madara (#7327)

* Add two new sources to Madara.

* Remove space at the end of genre names.
This commit is contained in:
Alessandro Jean 2021-05-30 19:38:21 -03:00 committed by GitHub
parent c9f6bd2504
commit 71907f4cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 103 additions and 0 deletions

View File

@ -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<Genre> = 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")
)
}

View File

@ -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<Genre> = 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")
)
}

View File

@ -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"),