Add a new source to Madara (closes #12133). (#12141)

This commit is contained in:
Alessandro Jean 2022-06-09 15:24:24 -03:00 committed by GitHub
parent b4479cbd20
commit b4db1bfd45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.pt.rainbowfairyscan
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 RainbowFairyScan : Madara(
"Rainbow Fairy Scan",
"https://rainbowfairyscan.com",
"pt-BR",
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
// Page has custom link to scan website.
override val popularMangaUrlSelector = "div.post-title a:not([target])"
}

View File

@ -368,6 +368,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Pirulito Rosa", "https://pirulitorosa.site", "pt-BR", isNsfw = true),
SingleLang("QueensManga ملكات المانجا", "https://queensmanga.com", "ar", className = "QueensManga", overrideVersionCode = 1),
SingleLang("RagnarokScan", "https://ragnarokscan.com", "es"),
SingleLang("Rainbow Fairy Scan", "https://rainbowfairyscan.com", "pt-BR"),
SingleLang("Random Scan", "https://randomscan.online", "pt-BR", overrideVersionCode = 4),
SingleLang("Random Translations", "https://randomtranslations.com", "en", overrideVersionCode = 1),
SingleLang("Raw Mangas", "https://rawmangas.net", "ja", isNsfw = true, overrideVersionCode = 2),