diff options
author | jazzzooo <38244149+jazzzooo@users.noreply.github.com> | 2023-09-21 09:21:20 -0700 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2023-09-25 22:46:22 +0200 |
commit | 3c6549a17f886b90a8e700810f9e1aea86581966 (patch) | |
tree | 85cad8de3a0c34f847c1e9d54afed4d9e110cce6 /searxng_extra | |
parent | ffec8d1b4cd3036d628b70628d54decc07b4fc2b (diff) | |
download | searxng-3c6549a17f886b90a8e700810f9e1aea86581966.tar.gz searxng-3c6549a17f886b90a8e700810f9e1aea86581966.zip |
[fix] update user agent
Diffstat (limited to 'searxng_extra')
-rwxr-xr-x | searxng_extra/update/update_firefox_version.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/searxng_extra/update/update_firefox_version.py b/searxng_extra/update/update_firefox_version.py index 2e730764a..56758b5e8 100755 --- a/searxng_extra/update/update_firefox_version.py +++ b/searxng_extra/update/update_firefox_version.py @@ -32,7 +32,7 @@ useragents = { "versions": (), "os": ('Windows NT 10.0; Win64; x64', 'X11; Linux x86_64'), - "ua": "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}", + "ua": "Mozilla/5.0 ({os}; rv:109.0) Gecko/20100101 Firefox/{version}", # fmt: on } @@ -64,6 +64,12 @@ def fetch_firefox_last_versions(): major_last = versions[0].major major_list = (major_last, major_last - 1) for version in versions: + msg = ( + "Please check if the rv segment of the user agent is still frozen at 109.0: " + "https://bugzilla.mozilla.org/show_bug.cgi?id=1805967" + ) + assert version.major != 120, msg + major_current = version.major minor_current = version.minor if major_current in major_list: |