diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-03-31 20:03:34 +0000 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-03-31 20:03:34 +0000 |
commit | f00cdb5e514e4fbd556b349579a00aa15f5f639e (patch) | |
tree | fa1cd536b8fa028e9dfac394119d78db5cc48974 /searx/engines | |
parent | d1334beb4fb16beec298f894d75e94b241499e06 (diff) | |
download | searxng-f00cdb5e514e4fbd556b349579a00aa15f5f639e.tar.gz searxng-f00cdb5e514e4fbd556b349579a00aa15f5f639e.zip |
bing engine: _fetch_supported_languages: don't use the language code as a country
ref #1029
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/bing.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py index 9744b1800..4c037de85 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -145,9 +145,7 @@ def _fetch_supported_languages(resp): lang, nation = (setlang.split('-', maxsplit=1) + [None,])[:2] # fmt: skip # fmt: on - if not nation: - nation = lang.upper() - tag = lang + '-' + nation + tag = lang + '-' + nation if nation else lang lang_tags.add(tag) return list(lang_tags) |