Add a new source to WPMangaReader (closes #9478). (#9552)

This commit is contained in:
Alessandro Jean 2021-10-20 08:17:30 -03:00 committed by GitHub
parent 2356e8ac83
commit b73a6fbedb
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.yanpfansub
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class YANPFansub : WPMangaReader(
"YANP Fansub",
"https://yanpfansub.com",
"pt-BR",
dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.addNetworkInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val altName = "Nome alternativo: "
}

View File

@ -42,6 +42,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 1), SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 1),
SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Silence Scan", "https://silencescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 5), SingleLang("Silence Scan", "https://silencescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 5),
SingleLang("YANP Fansub", "https://yanpfansub.com", "pt-BR", isNsfw = true)
) )
companion object { companion object {