Removed UA from SetsuScans and increased ratelimit (#9751)

* Removed UA from SetsuScans and increased ratelimit

* Actually increase ratelimit
This commit is contained in:
loocool2 2021-11-06 06:14:08 -07:00 committed by GitHub
parent 87c37610d1
commit 65a2d4eeb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -2,14 +2,9 @@ package eu.kanade.tachiyomi.extension.en.setsuscans
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.Headers
class SetsuScans : Madara("Setsu Scans", "https://setsuscans.com", "en") {
override fun headersBuilder(): Headers.Builder = super.headersBuilder().let {
it.set("User-Agent", "Tachiyomi ${it["User-Agent"]!!}")
}
override val client = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1))
.addInterceptor(RateLimitInterceptor(1, 2))
.build()
}

View File

@ -345,7 +345,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Seafoam Scans", "https://seafoamscans.com", "en", overrideVersionCode = 2),
SingleLang("Seikou Scans", "https://seikouscans.com", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("Sensaina Yuri", "https://sensainayuri.dropescan.com", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("Setsu Scans", "https://setsuscans.com", "en", overrideVersionCode = 1),
SingleLang("Setsu Scans", "https://setsuscans.com", "en", overrideVersionCode = 2),
SingleLang("Shield Manga", "https://shieldmanga.club", "en", overrideVersionCode = 2),
SingleLang("ShinobiScans", "https://shinobiscans.com", "it"),
SingleLang("Shooting Star Scans", "https://shootingstarscans.com", "en", overrideVersionCode = 2),