Don't search for movies with year to far in the future

This commit is contained in:
Ruud
2014-01-11 00:26:59 +01:00
parent 5cc471cc87
commit fb9d52c2b9
@@ -284,6 +284,10 @@ class MovieSearcher(SearcherBase, MovieTypeBase):
return True
else:
# Don't allow movies with years to far in the future
if year is not None and year > now_year + 1:
return False
# For movies before 1972
if not dates or dates.get('theater', 0) < 0 or dates.get('dvd', 0) < 0:
return True