From 936e216f1106fd342b657b9ea3a0da35c3df18ca Mon Sep 17 00:00:00 2001 From: bwq Date: Wed, 12 Oct 2011 01:12:06 +0200 Subject: [PATCH] Sabnzbd should be able to handle empty nzbns too, small fix for that. --- couchpotato/core/downloaders/sabnzbd/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/couchpotato/core/downloaders/sabnzbd/main.py b/couchpotato/core/downloaders/sabnzbd/main.py index e07d3f43..32aa3268 100644 --- a/couchpotato/core/downloaders/sabnzbd/main.py +++ b/couchpotato/core/downloaders/sabnzbd/main.py @@ -44,6 +44,10 @@ class Sabnzbd(Downloader): nzb_file = data.get('download')(url = data.get('url'), nzb_id = data.get('id')) + if "no nzb" in nzb_file: + log.error('No nzb available!') + return False + # If it's a .rar, it adds the .rar extension, otherwise it stays .nzb nzb_filename = self.createFileName(data, nzb_file, movie)