From 49fb99b4f1bc5327b331763366bf175769f0612d Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Tue, 26 Jan 2021 19:44:50 +0700 Subject: [PATCH] Scantrad user agent (#5563) try triple randomizer --- src/fr/scantrad/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/fr/scantrad/Scantrad.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/scantrad/build.gradle b/src/fr/scantrad/build.gradle index 01942a1ac..e66dc2937 100644 --- a/src/fr/scantrad/build.gradle +++ b/src/fr/scantrad/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Scantrad' pkgNameSuffix = 'fr.scantrad' extClass = '.Scantrad' - extVersionCode = 9 + extVersionCode = 10 libVersion = '1.2' } diff --git a/src/fr/scantrad/src/eu/kanade/tachiyomi/extension/fr/scantrad/Scantrad.kt b/src/fr/scantrad/src/eu/kanade/tachiyomi/extension/fr/scantrad/Scantrad.kt index e34bc7463..5464fd68f 100644 --- a/src/fr/scantrad/src/eu/kanade/tachiyomi/extension/fr/scantrad/Scantrad.kt +++ b/src/fr/scantrad/src/eu/kanade/tachiyomi/extension/fr/scantrad/Scantrad.kt @@ -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