[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
1 changed files with 2 additions and 2 deletions

View File

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