From a5fd30bf4d195d02b4ee9a3e69170a3755ca56d5 Mon Sep 17 00:00:00 2001 From: Israel Yago Pereira Date: Fri, 12 Nov 2021 09:40:26 -0300 Subject: [PATCH] fix wrong func call --- searx/engines/google.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index dd393f1f..3da00659 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -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 # Language Collection Values: # 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: # https://developers.google.com/custom-search/docs/xml_results#hlsp The