TeamX: increase timeout (closes #2467)

This commit is contained in:
arkon 2020-03-22 12:38:28 -04:00
parent 53a36797f3
commit 956e93f13f
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Team X' appName = 'Tachiyomi: Team X'
pkgNameSuffix = 'ar.teamx' pkgNameSuffix = 'ar.teamx'
extClass = '.TeamX' extClass = '.TeamX'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -9,6 +9,7 @@ import okhttp3.Request
import okhttp3.Response import okhttp3.Response
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.util.concurrent.TimeUnit
class TeamX : ParsedHttpSource() { class TeamX : ParsedHttpSource() {
@ -20,7 +21,10 @@ class TeamX : ParsedHttpSource() {
override val supportsLatest = true override val supportsLatest = true
override val client: OkHttpClient = network.cloudflareClient override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(15, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.build()
// Popular // Popular