HentaiVN: bypass "captcha" (#16206)

* HentaiVN: Bypass "captcha"

* Update build.gradle
This commit is contained in:
beerpsi 2023-04-29 08:52:13 +07:00 committed by GitHub
parent 2e2ca33445
commit 037191ea8f
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'
pkgNameSuffix = 'vi.hentaivn'
extClass = '.HentaiVN'
extVersionCode = 22
extVersionCode = 23
isNsfw = true
}

View File

@ -53,7 +53,7 @@ class HentaiVN : ParsedHttpSource() {
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.add("Referer", baseUrl)
.add("Cookie", "view4=1") // Get popular manga
.add("Cookie", "view1=1; view4=1") // bypass "captcha" and get popular manga
private val dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH)