From f00cdb5e514e4fbd556b349579a00aa15f5f639e Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Thu, 31 Mar 2022 20:03:34 +0000 Subject: [PATCH] bing engine: _fetch_supported_languages: don't use the language code as a country ref #1029 --- searx/engines/bing.py | 4 +--- 1 file changed, 1 insertion(+), 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)