1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

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

ref #1029
This commit is contained in:
Alexandre FLAMENT 2022-03-31 20:03:34 +00:00
parent d1334beb4f
commit f00cdb5e51

View File

@ -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)