diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-11-25 23:32:48 -0600 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-01-06 20:31:57 -0600 |
commit | 5568f24d6ca9ae9a7eca27c107982b2689e40105 (patch) | |
tree | c67749e9dfeb4a27cef9a550fe366b291ead3373 /searx/engines/bing_videos.py | |
parent | 3c95d64ff8f5f42a69b05d721265c6e484edc451 (diff) | |
download | searxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.tar.gz searxng-5568f24d6ca9ae9a7eca27c107982b2689e40105.zip |
[fix] check language aliases when setting search language
Diffstat (limited to 'searx/engines/bing_videos.py')
-rw-r--r-- | searx/engines/bing_videos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py index 7002ac861..bf17f9168 100644 --- a/searx/engines/bing_videos.py +++ b/searx/engines/bing_videos.py @@ -48,7 +48,7 @@ def request(query, params): 'ADLT=' + safesearch_types.get(params['safesearch'], 'DEMOTE') # language cookie - language = match_language(params['language'], supported_languages).lower() + language = match_language(params['language'], supported_languages, language_aliases).lower() params['cookies']['_EDGE_S'] = 'mkt=' + language + '&F=1' # query and paging |