Add a new source to Madara. (#13897)

This commit is contained in:
Alessandro Jean 2022-10-17 21:43:37 -03:00 committed by GitHub
parent cb6498ae33
commit 67ba51fcff
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.shiraiscans
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 ShiraiScans : Madara(
"Shirai Scans",
"https://shiraiscans.com.br",
"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

@ -417,6 +417,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Shield Manga", "https://shieldmanga.io", "en", overrideVersionCode = 3),
SingleLang("Shimada Scans", "https://shimadascans.com", "en"),
SingleLang("ShinobiScans", "https://shinobiscans.com", "it"),
SingleLang("Shirai Scans", "https://shiraiscans.com.br", "pt-BR"),
SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2),
SingleLang("Sinensis Scan", "https://sinensisscans.com", "pt-BR", pkgName = "sinensis", overrideVersionCode = 4),
SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3),