From b50cf1cf4c82912f14d1d334a6e982e18db071a0 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 8 Mar 2014 10:50:11 +0100 Subject: [PATCH] Only allow next year for couldbereleased check --- couchpotato/core/media/movie/searcher/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/media/movie/searcher/main.py b/couchpotato/core/media/movie/searcher/main.py index 7ae76a4e..1c22e18c 100644 --- a/couchpotato/core/media/movie/searcher/main.py +++ b/couchpotato/core/media/movie/searcher/main.py @@ -282,13 +282,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