From 6eb950389680b33a24c8bc1cd666d84a08272b41 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Wed, 22 Nov 2017 22:56:47 +0100 Subject: [PATCH] [fix] use english in google engine if no language was set - this prevents guessing the language by the IP of the instance --- searx/engines/google.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index f734ef72e..de2717d81 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -165,10 +165,9 @@ def request(query, params): offset = (params['pageno'] - 1) * 10 if params['language'] == 'all': - language = 'en' - country = 'US' - url_lang = 'lang_en' - elif params['language'][:2] == 'jv': + params['language'] = 'en-GB' + + if params['language'][:2] == 'jv': language = 'jw' country = 'ID' url_lang = 'lang_jw'