Add a new source to Madara. (#13333)

This commit is contained in:
Alessandro Jean 2022-09-03 13:01:11 -03:00 committed by GitHub
parent b56fe66fce
commit e72d433459
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.kalangoscan
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 KalangoScan : Madara(
"Kalango Scan",
"https://kalangoscan.online",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
override val useNewChapterEndpoint = true
}

View File

@ -164,6 +164,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("JaiminisBox.net", "https://jaiminisbox.net", "en", className = "Jaiminisboxnet"), SingleLang("JaiminisBox.net", "https://jaiminisbox.net", "en", className = "Jaiminisboxnet"),
SingleLang("Jiangzaitoon", "https://jiangzaitoon.biz", "tr", isNsfw = true, overrideVersionCode = 1), SingleLang("Jiangzaitoon", "https://jiangzaitoon.biz", "tr", isNsfw = true, overrideVersionCode = 1),
SingleLang("Jiro Comics", "https://jirocomics.com", "en", isNsfw = true), SingleLang("Jiro Comics", "https://jirocomics.com", "en", isNsfw = true),
SingleLang("Kalango Scan", "https://kalangoscan.online", "pt-BR"),
SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2), SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2),
SingleLang("KawaScans", "https://kawascans.com", "en", overrideVersionCode = 1), SingleLang("KawaScans", "https://kawascans.com", "en", overrideVersionCode = 1),
SingleLang("Kiara", "https://kiara.cool", "en"), SingleLang("Kiara", "https://kiara.cool", "en"),