fusion scanlation: add rate limit and dates (#8009)
* add ratelimit and dates * add opverride
This commit is contained in:
parent
5017db9388
commit
8dc35e3a92
|
@ -0,0 +1,4 @@
|
|||
|
||||
dependencies {
|
||||
implementation project(':lib-ratelimit')
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package eu.kanade.tachiyomi.extension.es.fusionscanlation
|
||||
|
||||
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||||
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
|
||||
import okhttp3.OkHttpClient
|
||||
import java.util.concurrent.TimeUnit
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class FusionScanlation : WPMangaReader("Fusion Scanlation", "https://fusionscanlation.com", "es", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es"))) {
|
||||
private val rateLimitInterceptor = RateLimitInterceptor(1,2)
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.connectTimeout(10, TimeUnit.SECONDS)
|
||||
.readTimeout(30, TimeUnit.SECONDS)
|
||||
.addNetworkInterceptor(rateLimitInterceptor)
|
||||
.build()
|
||||
}
|
|
@ -34,7 +34,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
|
|||
SingleLang("YugenMangas", "https://yugenmangas.com", "es"),
|
||||
SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("Patatescans", "https://patatescans.com", "fr", isNsfw = true, overrideVersionCode = 1),
|
||||
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es"),
|
||||
SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", className = "FusionScanlation", overrideVersionCode = 1),
|
||||
SingleLang("Ace Scans", "https://acescans.xyz", "en"),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue