add year to time range to engines which support "Last year"

Engines:
 * Bing images
 * Flickr (noapi)
 * Google
 * Google Images
 * Google News
This commit is contained in:
Noémi Ványi 2016-12-11 16:39:12 +01:00
parent 2fc1091b7f
commit c59c76e6ee
6 changed files with 36 additions and 5 deletions

View file

@ -34,7 +34,8 @@ paging = True
time_range_support = True
time_range_dict = {'day': 60 * 60 * 24,
'week': 60 * 60 * 24 * 7,
'month': 60 * 60 * 24 * 7 * 4}
'month': 60 * 60 * 24 * 7 * 4,
'year': 60 * 60 * 24 * 7 * 52}
def build_flickr_url(user_id, photo_id):