logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 6eb950389680b33a24c8bc1cd666d84a08272b41
parent: 6fdb6640d9e644860f60bf9cd59847c2d359fc8a
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Wed, 22 Nov 2017 22:56:47 +0100

[fix] use english in google engine if no language was set - this prevents guessing the language by the IP of the instance

Diffstat:

Msearx/engines/google.py7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 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'