Add header accept-language (#5887)

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

View File

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

View File

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