HentaiVN: maybe fix cloudflare issue (#5870)

This commit is contained in:
scb261 2021-02-15 17:36:48 +02:00 committed by GitHub
parent a49001e314
commit 850b77e74f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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