From 71c181379a9008f14b3c416494d34ea71b05d86a Mon Sep 17 00:00:00 2001 From: mano3m <-> Date: Thu, 2 Aug 2012 20:56:05 +0200 Subject: [PATCH] Fixed behavior for not compatible downloaders + typo's --- couchpotato/core/plugins/searcher/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 2d2fdac6..fbfe0fa9 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -475,11 +475,12 @@ class Searcher(Plugin): # check status downloadstatus = fireEvent('getdownloadstatus', data = item, movie = movie) - if downloadstatus == None: # Downloader not compatible with download status + if not downloadstatus: # Downloader not compatible with download status + log.debug('Download status functionality is not implemented for active downloaders.') scanrequired = True else: - log.debug('Download staus: %s' , downloadstatus[0]) + log.debug('Download status: %s' , downloadstatus[0]) if downloadstatus[0] == 'Failed': # if failed set status to ignored @@ -514,7 +515,7 @@ class Searcher(Plugin): rel.status_id = ignored_status.get('id') db.commit() - # Note that Queued, Downloading, Paused, Repairn and Unpackimg are also available as status + # Note that Queued, Downloading, Paused, Repair and Unpackimg are also available as status for SabNZBd if scanrequired: fireEvent('renamer.scan')