Add a new source to Madara. (#13897)
This commit is contained in:
parent
cb6498ae33
commit
67ba51fcff
|
@ -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
|
||||||
|
}
|
|
@ -417,6 +417,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Shield Manga", "https://shieldmanga.io", "en", overrideVersionCode = 3),
|
SingleLang("Shield Manga", "https://shieldmanga.io", "en", overrideVersionCode = 3),
|
||||||
SingleLang("Shimada Scans", "https://shimadascans.com", "en"),
|
SingleLang("Shimada Scans", "https://shimadascans.com", "en"),
|
||||||
SingleLang("ShinobiScans", "https://shinobiscans.com", "it"),
|
SingleLang("ShinobiScans", "https://shinobiscans.com", "it"),
|
||||||
|
SingleLang("Shirai Scans", "https://shiraiscans.com.br", "pt-BR"),
|
||||||
SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2),
|
SingleLang("ShoujoHearts", "https://shoujohearts.com", "en", overrideVersionCode = 2),
|
||||||
SingleLang("Sinensis Scan", "https://sinensisscans.com", "pt-BR", pkgName = "sinensis", overrideVersionCode = 4),
|
SingleLang("Sinensis Scan", "https://sinensisscans.com", "pt-BR", pkgName = "sinensis", overrideVersionCode = 4),
|
||||||
SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3),
|
SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3),
|
||||||
|
|
Loading…
Reference in New Issue