diff --git a/searx/engines/apple_app_store.py b/searx/engines/apple_app_store.py index fe8f6ec83..112c58224 100644 --- a/searx/engines/apple_app_store.py +++ b/searx/engines/apple_app_store.py @@ -21,12 +21,18 @@ about = { } categories = ['files', 'apps'] +safesearch = True search_url = 'https://itunes.apple.com/search?{query}' def request(query, params): - params['url'] = search_url.format(query=urlencode({'term': query, 'media': 'software'})) + explicit = "Yes" + + if params['safesearch'] > 0: + explicit = "No" + + params['url'] = search_url.format(query=urlencode({'term': query, 'media': 'software', 'explicit': explicit})) return params