HentaiVN: maybe fix cloudflare issue (#5870)
This commit is contained in:
parent
a49001e314
commit
850b77e74f
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'HentaiVN'
|
||||
pkgNameSuffix = 'vi.hentaivn'
|
||||
extClass = '.HentaiVN'
|
||||
extVersionCode = 7
|
||||
extVersionCode = 8
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class HentaiVN : ParsedHttpSource() {
|
|||
private val searchUrl = "$baseUrl/forum/search-plus.php"
|
||||
private val searchClient = network.cloudflareClient
|
||||
|
||||
override val client: OkHttpClient = network.client.newBuilder()
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.cookieJar(CookieJar.NO_COOKIES)
|
||||
.addInterceptor { chain ->
|
||||
val originalRequest = chain.request()
|
||||
|
|
Loading…
Reference in New Issue