Add two new sources to Madara (#17122)

Add two new sources to Madara.
This commit is contained in:
Alessandro Jean 2023-07-15 19:29:27 -03:00 committed by GitHub
parent 0997aa4107
commit 02e0fce955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.astrumscans
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 AstrumScans : Madara(
"Astrum Scans",
"https://astrumscans.xyz",
"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
override val mangaSubString = "series"
}

View File

@ -0,0 +1,22 @@
package eu.kanade.tachiyomi.extension.pt.maidscan
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 MaidScan : Madara(
"Maid Scan",
"https://maidscan.com.br",
"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
}

View File

@ -44,6 +44,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),
SingleLang("Astral Library", "https://www.astrallibrary.net", "en", overrideVersionCode = 2),
SingleLang("Astral-Manga", "https://astral-manga.fr", "fr", className = "AstralManga"),
SingleLang("Astrum Scans", "https://astrumscans.xyz", "pt-BR", isNsfw = true),
SingleLang("Atikrost", "https://atikrost.com", "tr", overrideVersionCode = 1),
SingleLang("AZManhwa", "https://azmanhwa.net", "en"),
SingleLang("Azora", "https://azoranov.com", "ar", overrideVersionCode = 6),
@ -185,6 +186,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Lord Manga", "https://lordmanga.com", "en"),
SingleLang("LuxManga", "https://luxmanga.com", "en"),
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Maid Scan", "https://maidscan.com.br", "pt-BR"),
SingleLang("Manga Action", "https://mangaaction.com", "en", overrideVersionCode = 2),
SingleLang("Manga Bilgini", "https://mangabilgini.com", "tr"),
SingleLang("Manga Bin", "https://mangabin.com", "en", overrideVersionCode = 1),