mirror of
https://github.com/searx/searx
synced 2025-03-02 02:27:48 +01:00
fix wrong func call
This commit is contained in:
parent
4882a3c7a4
commit
a5fd30bf4d
@ -182,9 +182,9 @@ def get_lang_info(params, lang_list, custom_aliases, supported_any_language):
|
|||||||
# https://developers.google.com/custom-search/docs/xml_results#lrsp
|
# https://developers.google.com/custom-search/docs/xml_results#lrsp
|
||||||
# Language Collection Values:
|
# Language Collection Values:
|
||||||
# https://developers.google.com/custom-search/docs/xml_results_appendices#languageCollections
|
# https://developers.google.com/custom-search/docs/xml_results_appendices#languageCollections
|
||||||
ret_val['params']['lr'] = "lang_" + lang_list.get(lang_country, language)
|
ret_val['params']['lr'] = "lang_" + lang_country if lang_country in lang_list else language
|
||||||
|
|
||||||
ret_val['params']['hl'] = lang_list.get(lang_country, language)
|
ret_val['params']['hl'] = lang_country if lang_country in lang_list else language
|
||||||
|
|
||||||
# hl parameter:
|
# hl parameter:
|
||||||
# https://developers.google.com/custom-search/docs/xml_results#hlsp The
|
# https://developers.google.com/custom-search/docs/xml_results#hlsp The
|
||||||
|
Loading…
x
Reference in New Issue
Block a user