From 26e9211c17036245879be10af682bf337d4be70d Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 30 Apr 2012 10:11:42 +0200 Subject: [PATCH] Wrong "to early to search". fixes #178 --- couchpotato/core/plugins/searcher/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 530c4ce1..daf1aa70 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -356,15 +356,15 @@ class Searcher(Plugin): else: if wanted_quality in pre_releases: # Prerelease 1 week before theaters - if dates.get('theater') >= now - 604800 and wanted_quality in pre_releases: + if dates.get('theater') - 604800 < now: return True else: # 6 weeks after theater release - if dates.get('theater') < now - 3628800: + if dates.get('theater') + 3628800 < now: return True # 6 weeks before dvd release - if dates.get('dvd') > now - 3628800: + if dates.get('dvd') - 3628800 < now: return True # Dvd should be released