Add header accept-language ()

This commit is contained in:
Victorien Berlot 2021-02-17 00:56:34 +01:00 committed by GitHub
parent cf62cb5ef1
commit 2ad36b1f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
src/fr/scantrad
build.gradle
src/eu/kanade/tachiyomi/extension/fr/scantrad

View File

@ -5,7 +5,7 @@ ext {
extName = 'Scantrad' extName = 'Scantrad'
pkgNameSuffix = 'fr.scantrad' pkgNameSuffix = 'fr.scantrad'
extClass = '.Scantrad' extClass = '.Scantrad'
extVersionCode = 14 extVersionCode = 15
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -44,6 +44,7 @@ class Scantrad : ParsedHttpSource() {
override fun headersBuilder(): Headers.Builder = Headers.Builder() override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", generateRandomUserAgent(Random.nextInt(10, 30).absoluteValue)) .add("User-Agent", generateRandomUserAgent(Random.nextInt(10, 30).absoluteValue))
.add("Accept-Language", "fr")
// Popular // Popular