Sabnzbd should be able to handle empty nzbns too, small fix for that.

This commit is contained in:
bwq
2011-10-12 01:12:06 +02:00
parent 5551480703
commit 936e216f11
@@ -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)