From 7c18fc8787bed40e95a3e930eeda8c819c3a2298 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 5 May 2012 02:18:28 +0200 Subject: [PATCH] Don't search for done movies --- couchpotato/core/plugins/searcher/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index f610dfde..7760959c 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -65,8 +65,10 @@ class Searcher(Plugin): def single(self, movie): - if not movie['profile']: - log.debug('Movie does\'nt have a profile, assuming in manage tab.') + done_status = fireEvent('status.get', 'done', single = True) + + if not movie['profile'] or movie['status_id'] == done_status.get('id'): + log.debug('Movie does\'nt have a profile or already done, assuming in manage tab.') return db = get_session()