commit: 7ac6361b51199ce8b208dcd6e8ba62ec4f652186
parent 10666fd7c03ac3e9ba6507d36f04181fb90ae466
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sun, 8 Feb 2015 22:29:26 +0100
[enh] set google safesearch filter more restictive
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
@@ -26,10 +26,10 @@ search_url = url + 'ajax/services/search/images?v=1.0&start={offset}&rsz=large&s
def request(query, params):
offset = (params['pageno'] - 1) * 8
- if params['safesearch'] == 2:
- safesearch = 'on'
- else:
+ if params['safesearch'] == 0:
safesearch = 'off'
+ else:
+ safesearch = 'on'
params['url'] = search_url.format(query=urlencode({'q': query}),
offset=offset,