diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-02-08 22:29:26 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-02-08 22:29:26 +0100 |
commit | 7ac6361b51199ce8b208dcd6e8ba62ec4f652186 (patch) | |
tree | 0eb983532ab1542a9c0e1efd681604aa7346cd33 /searx/engines/google_images.py | |
parent | 10666fd7c03ac3e9ba6507d36f04181fb90ae466 (diff) | |
download | searxng-7ac6361b51199ce8b208dcd6e8ba62ec4f652186.tar.gz searxng-7ac6361b51199ce8b208dcd6e8ba62ec4f652186.zip |
[enh] set google safesearch filter more restictive
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r-- | searx/engines/google_images.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 31ad7e080..1c0e62f5c 100644 --- 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, |