Ninja Scan: update timeout limit (#5155)
This commit is contained in:
parent
e935556bff
commit
0d6631ee22
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.NinjaScan'
|
extClass = '.NinjaScan'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://ninjacomics.xyz'
|
baseUrl = 'https://ninjacomics.xyz'
|
||||||
overrideVersionCode = 1
|
overrideVersionCode = 2
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class NinjaScan : Madara(
|
class NinjaScan : Madara(
|
||||||
"Ninja Scan",
|
"Ninja Scan",
|
||||||
|
@ -12,6 +13,8 @@ class NinjaScan : Madara(
|
||||||
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
|
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
|
||||||
) {
|
) {
|
||||||
override val client = super.client.newBuilder()
|
override val client = super.client.newBuilder()
|
||||||
|
.connectTimeout(5, TimeUnit.MINUTES)
|
||||||
|
.readTimeout(5, TimeUnit.MINUTES)
|
||||||
.rateLimit(2)
|
.rateLimit(2)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue