NZB ids not persistent in new sessions

This commit is contained in:
Ruud
2013-04-08 21:44:36 +02:00
parent 95a68af795
commit 66d9d853af

View File

@@ -52,9 +52,7 @@ class NZBGet(Downloader):
if xml_response:
log.info('NZB sent successfully to NZBGet')
groups = rpc.listgroups()
nzb_id = [item['NZBID'] for item in groups if item['NZBFilename'] == nzb_name][0]
return self.downloadReturnId(nzb_id)
return True
else:
log.error('NZBGet could not add %s to the queue.', nzb_name)
return False