Add a new source to Madara. (#13578)

This commit is contained in:
Alessandro Jean 2022-09-24 23:35:01 -03:00 committed by GitHub
parent 6def50a7c4
commit 19089a3c4f
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.gloriousscan
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 GloriousScan : Madara(
"Glorious Scan",
"https://gloriousscan.com",
"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

@ -119,6 +119,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Gatemanga", "https://gatemanga.com", "ar", overrideVersionCode = 1),
SingleLang("GeassToon", "https://geasstoon.com", "tr"),
SingleLang("Gemanga", "https://gemanga.com", "ar", overrideVersionCode = 2),
SingleLang("Glorious Scan", "https://gloriousscan.com", "pt-BR"),
SingleLang("Glory Manga", "https://glorymanga.com", "tr"),
SingleLang("Glory Scans", "https://gloryscans.com", "tr", isNsfw = true),
SingleLang("Gogoscans", "https://www.gogoscans.com", "en"),