Ninja Scan: update timeout limit (#5155)

This commit is contained in:
Vetle Ledaal 2024-09-22 08:46:17 +02:00 committed by Draff
parent e935556bff
commit 0d6631ee22
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 1 deletions

View File

@ -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
} }

View File

@ -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()