Browse Source

[enh] set google safesearch filter more restictive

Thomas Pointhuber 10 years ago
parent
commit
7ac6361b51
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      searx/engines/google_images.py

+ 3
- 3
searx/engines/google_images.py View File

@@ -26,10 +26,10 @@ search_url = url + 'ajax/services/search/images?v=1.0&start={offset}&rsz=large&s
26 26
 def request(query, params):
27 27
     offset = (params['pageno'] - 1) * 8
28 28
 
29
-    if params['safesearch'] == 2:
30
-        safesearch = 'on'
31
-    else:
29
+    if params['safesearch'] == 0:
32 30
         safesearch = 'off'
31
+    else:
32
+        safesearch = 'on'
33 33
 
34 34
     params['url'] = search_url.format(query=urlencode({'q': query}),
35 35
                                       offset=offset,