TeamX: increase timeout (closes #2467)
This commit is contained in:
parent
53a36797f3
commit
956e93f13f
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Team X'
|
||||
pkgNameSuffix = 'ar.teamx'
|
||||
extClass = '.TeamX'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import okhttp3.Request
|
|||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class TeamX : ParsedHttpSource() {
|
||||
|
||||
|
@ -20,7 +21,10 @@ class TeamX : ParsedHttpSource() {
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue