Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ac6361b authored by Thomas Pointhuber's avatar Thomas Pointhuber
Browse files

[enh] set google safesearch filter more restictive

parent 10666fd7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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,