From fb9d52c2b98b4cf4da673acb471a14e55410a053 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 11 Jan 2014 00:26:59 +0100 Subject: [PATCH] Don't search for movies with year to far in the future --- couchpotato/core/media/movie/searcher/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/couchpotato/core/media/movie/searcher/main.py b/couchpotato/core/media/movie/searcher/main.py index d90f9598..1c4810ec 100644 --- a/couchpotato/core/media/movie/searcher/main.py +++ b/couchpotato/core/media/movie/searcher/main.py @@ -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