Add a new source to Madara. (#13997)

This commit is contained in:
Alessandro Jean 2022-10-26 16:07:07 -03:00 committed by GitHub
parent a0e2759576
commit a51c32b907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.imperiodabritannia
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 ImperioDaBritannia : Madara(
"Sagrado Império da Britannia",
"https://imperiodabritannia.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
override val mangaDetailsSelectorTag = ""
}

View File

@ -366,6 +366,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("RWBY Scan", "https://rwbyscan.site", "pt-BR", isNsfw = true, className = "RwbyScan"),
SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1),
SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1),
SingleLang("Sagrado Império da Britannia", "https://imperiodabritannia.com", "pt-BR", className = "ImperioDaBritannia"),
SingleLang("SamuraiScan", "https://samuraiscan.com", "es", overrideVersionCode = 1),
SingleLang("Sawamics", "https://sawamics.com", "en"),
SingleLang("ScamberTraslator", "https://scambertraslator.com", "es"),