Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fd303d1 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch '4173-fix-google-images' into 'master'

Fix google crash

See merge request e/cloud/my-spot!84
parents bbddad63 745f1211
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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