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