From 2d6c31af970bddcfb3e6bb60d41816f1ba33fdba Mon Sep 17 00:00:00 2001 From: mano3m <-> Date: Sat, 18 Aug 2012 19:52:07 +0200 Subject: [PATCH] Some failure messages do not contain 'fail'. No message at all means success. --- couchpotato/core/downloaders/sabnzbd/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/sabnzbd/main.py b/couchpotato/core/downloaders/sabnzbd/main.py index e174259d..86d5459d 100644 --- a/couchpotato/core/downloaders/sabnzbd/main.py +++ b/couchpotato/core/downloaders/sabnzbd/main.py @@ -122,7 +122,7 @@ class Sabnzbd(Downloader): if slot['category'] == self.conf('category'): log.debug('Found %s in SabNZBd history, which has %s', (slot['name'], slot['status'])) if slot['name'] == nzbname: - if slot['status'] == 'Failed' or 'fail' in slot['fail_message'].lower(): + if slot['status'] == 'Failed' or slot['fail_message'].strip(): # Delete failed download if self.conf('delete_failed', default = True):