Scantrad user agent (#5563)

try triple randomizer
This commit is contained in:
Riztard Lanthorn 2021-01-26 19:44:50 +07:00 committed by GitHub
parent 78d31de70a
commit 49fb99b4f1
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 = 'Scantrad'
pkgNameSuffix = 'fr.scantrad'
extClass = '.Scantrad'
extVersionCode = 9
extVersionCode = 10
libVersion = '1.2'
}

View File

@ -37,7 +37,7 @@ class Scantrad : ParsedHttpSource() {
protected open val userAgentRandomizer = " ${Random.nextInt().absoluteValue}"
override fun headersBuilder() = Headers.Builder().apply {
add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36$userAgentRandomizer")
add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36$userAgentRandomizer (KHTML, like Gecko) Chrome/81.0.4044.122$userAgentRandomizer Safari/537.36$userAgentRandomizer")
}
// Popular