mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
add year filter to engines with time range support && tests
Following engines does not support "Last year": * Bing News * DeviantArt * DuckDuckGo * Yahoo * YouTube (noapi)
This commit is contained in:
@@ -66,6 +66,9 @@ def _get_url(query, language, offset, time_range):
|
||||
|
||||
# do search-request
|
||||
def request(query, params):
|
||||
if params['time_range'] and params['time_range'] not in time_range_dict:
|
||||
return params
|
||||
|
||||
offset = (params['pageno'] - 1) * 10 + 1
|
||||
|
||||
if params['language'] == 'all':
|
||||
|
||||
Reference in New Issue
Block a user