Add a new source to Madara (closes #8185). (#8186)

This commit is contained in:
Alessandro Jean 2021-07-19 14:40:20 -03:00 committed by GitHub
parent 65b0bf52f6
commit b88c57f7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.sinensis
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 Sinensis : Madara(
"Sinensis",
"https://sinensisscan.com",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS))
.build()
override val altName: String = "Nome alternativo: "
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

@ -302,6 +302,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Shooting Star Scans", "https://shootingstarscans.xyz", "en", overrideVersionCode = 1),
SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2),
SingleLang("SiXiang Scans", "http://www.sixiangscans.com", "en", overrideVersionCode = 1),
SingleLang("Sinensis", "https://sinensisscan.com", "pt-BR"),
SingleLang("Siyahmelek", "https://siyahmelek.net", "tr", isNsfw = true, overrideVersionCode = 2),
SingleLang("Skymanga", "https://skymanga.co", "en", overrideVersionCode = 1),
SingleLang("Sleeping Knight Scans", "https://skscans.com", "en", overrideVersionCode = 2),