diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-04-02 08:23:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-02 08:23:58 +0200 |
| commit | 765504ceca4ce9e69b02b213b2f9a3036915055d (patch) | |
| tree | 9bd01dcc37686c1f6a6833c154817fdb50a4aebc /searx/engines | |
| parent | 41213c960b15c6f0522e777acc0a5de327ba22c6 (diff) | |
| parent | 7d31b2c0afa7800f320519b1b6e8ed0841b5469d (diff) | |
Merge pull request #1031 from dalf/fix-bing-_fetch_supported_languages
Fix bing fetch supported languages
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) |