Merge branch 'refs/heads/develop' into nosql

Conflicts:
	couchpotato/core/plugins/dashboard/main.py
This commit is contained in:
Ruud
2014-03-08 14:07:34 +01:00
3 changed files with 27 additions and 1 deletions
@@ -276,13 +276,15 @@ class MovieSearcher(SearcherBase, MovieTypeBase):
now = int(time.time())
now_year = date.today().year
now_month = date.today().month
if (year is None or year < now_year - 1) and (not dates or (dates.get('theater', 0) == 0 and dates.get('dvd', 0) == 0)):
return True
else:
# Don't allow movies with years to far in the future
if year is not None and year > now_year + 1:
add_year = 1 if now_month > 10 else 0 # Only allow +1 year if end of the year
if year is not None and year > (now_year + add_year):
return False
# For movies before 1972