parent
a0d504b109
commit
7f71f15629
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'TuMangaOnline / LectorManga'
|
extName = 'TuMangaOnline / LectorManga'
|
||||||
extClass = '.LectorTmoFactory'
|
extClass = '.LectorTmoFactory'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
import uy.kohesive.injekt.api.get
|
import uy.kohesive.injekt.api.get
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class LectorTmoFactory : SourceFactory {
|
class LectorTmoFactory : SourceFactory {
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ class LectorTmoFactory : SourceFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
val rateLimitClient = Injekt.get<NetworkHelper>().cloudflareClient.newBuilder()
|
val rateLimitClient = Injekt.get<NetworkHelper>().cloudflareClient.newBuilder()
|
||||||
.rateLimit(1, 1)
|
.rateLimit(1, 1500, TimeUnit.MILLISECONDS)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
class TuMangaOnline : LectorTmo("TuMangaOnline", "https://visortmo.com", "es", rateLimitClient) {
|
class TuMangaOnline : LectorTmo("TuMangaOnline", "https://visortmo.com", "es", rateLimitClient) {
|
||||||
|
|
Loading…
Reference in New Issue