Don't search for done movies

This commit is contained in:
Ruud
2012-05-05 02:18:28 +02:00
parent d86bcd33d2
commit 7c18fc8787
+4 -2
View File
@@ -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()