1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

[fix] language param for qwant

This commit is contained in:
MrPaulBlack 2021-10-14 14:15:55 +02:00 committed by Markus Heiser
parent ee5e9f9e1d
commit 00b0394e19

View File

@ -85,14 +85,14 @@ def request(query, params):
# add language tag # add language tag
if params['language'] == 'all': if params['language'] == 'all':
params['url'] += '&locale=en_us' params['url'] += '&locale=en_US'
else: else:
language = match_language( language = match_language(
params['language'], params['language'],
supported_languages, supported_languages,
language_aliases, language_aliases,
) )
params['url'] += '&locale=' + language.replace('-', '_').lower() params['url'] += '&locale=' + language.replace('-', '_')
params['raise_for_httperror'] = False params['raise_for_httperror'] = False
return params return params