Add a new source to Madara. (#13720)

This commit is contained in:
Alessandro Jean 2022-10-05 17:46:12 -03:00 committed by GitHub
parent 701f5640a0
commit 4eb7d280a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

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

View File

@ -474,6 +474,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("WebtoonUK", "https://webtoon.uk", "en", overrideVersionCode = 2),
SingleLang("WebtoonXYZ", "https://www.webtoon.xyz", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("Winter Scan", "https://winterscan.com", "pt-BR", overrideVersionCode = 4),
SingleLang("Wonderland Scan", "https://wonderlandscan.com", "pt-BR", overrideVersionCode = 3),
SingleLang("WoopRead", "https://woopread.com", "en", overrideVersionCode = 1),
SingleLang("WuxiaWorld", "https://wuxiaworld.site", "en", overrideVersionCode = 1),
SingleLang("XuN Scans", "https://xunscans.xyz", "en", overrideVersionCode = 3),