From 32f6781af510e9cd5000833ae5580f8a4caf1053 Mon Sep 17 00:00:00 2001 From: ilmich Date: Mon, 29 Jan 2024 20:12:44 +0100 Subject: [PATCH] fix useragent (#459) --- core/httptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/httptools.py b/core/httptools.py index 9d797008..845cc1b2 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -30,7 +30,7 @@ cookies_file = os.path.join(config.get_data_path(), "cookies.dat") # Headers by default, if nothing is specified default_headers = dict() -default_headers["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36" % config.get_setting("chrome_ua_version") +default_headers["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s.0.0.0 Safari/537.36" % config.get_setting("chrome_ua_version").split(".")[0] default_headers["Accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" default_headers["Accept-Language"] = "it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3" default_headers["Accept-Charset"] = "UTF-8"