Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

bing engine: _fetch_supported_languages: don't use the language code as a country

Alexandre FLAMENTf00cdb5e514e
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)