forked from zaclys/searxng
[fix] language param for qwant
This commit is contained in:
parent
ee5e9f9e1d
commit
00b0394e19
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue