forked from zaclys/searxng
		
	[enh] set google safesearch filter more restictive
This commit is contained in:
		
							parent
							
								
									10666fd7c0
								
							
						
					
					
						commit
						7ac6361b51
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -26,10 +26,10 @@ search_url = url + 'ajax/services/search/images?v=1.0&start={offset}&rsz=large&s | ||||||
| def request(query, params): | def request(query, params): | ||||||
|     offset = (params['pageno'] - 1) * 8 |     offset = (params['pageno'] - 1) * 8 | ||||||
| 
 | 
 | ||||||
|     if params['safesearch'] == 2: |     if params['safesearch'] == 0: | ||||||
|         safesearch = 'on' |  | ||||||
|     else: |  | ||||||
|         safesearch = 'off' |         safesearch = 'off' | ||||||
|  |     else: | ||||||
|  |         safesearch = 'on' | ||||||
| 
 | 
 | ||||||
|     params['url'] = search_url.format(query=urlencode({'q': query}), |     params['url'] = search_url.format(query=urlencode({'q': query}), | ||||||
|                                       offset=offset, |                                       offset=offset, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Thomas Pointhuber
						Thomas Pointhuber