Add a new source to Madara (closes #11234). (#11272)

This commit is contained in:
Alessandro Jean 2022-03-30 09:29:03 -03:00 committed by GitHub
parent d498123af3
commit 2eef857f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package eu.kanade.tachiyomi.extension.pt.akumanotenshi
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 AkumaNoTenshi : Madara(
"Akuma no Tenshi",
"https://akumanotenshi.com",
"pt-BR",
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
}

View File

@ -34,6 +34,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Aiin Scan", "https://aiinscan.xyz", "pt-BR"),
SingleLang("AiYuManga", "https://aiyumangascanlation.com", "es"),
SingleLang("AkuManga", "https://akumanga.com", "ar", overrideVersionCode = 1),
SingleLang("Akuma no Tenshi", "https://akumanotenshi.com", "pt-BR", className = "AkumaNoTenshi"),
SingleLang("AllPornComic", "https://allporncomic.com", "en", isNsfw = true),
SingleLang("AllTopManga", "https://alltopmanga.com", "en", isNsfw = true),
SingleLang("Anikiga", "https://anikiga.com", "tr"),