LectorTmo: Increase ratelimit slightly (#5125)

increase ratelimit
This commit is contained in:
bapeey 2024-09-20 02:23:22 -05:00 committed by Draff
parent a0d504b109
commit 7f71f15629
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'TuMangaOnline / LectorManga'
extClass = '.LectorTmoFactory'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -13,6 +13,7 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.util.concurrent.TimeUnit
class LectorTmoFactory : SourceFactory {
@ -23,7 +24,7 @@ class LectorTmoFactory : SourceFactory {
}
val rateLimitClient = Injekt.get<NetworkHelper>().cloudflareClient.newBuilder()
.rateLimit(1, 1)
.rateLimit(1, 1500, TimeUnit.MILLISECONDS)
.build()
class TuMangaOnline : LectorTmo("TuMangaOnline", "https://visortmo.com", "es", rateLimitClient) {