Private GIT

Skip to content
Snippets Groups Projects
Commit 0cd2206e authored by mano3m's avatar mano3m Committed by Ruud
Browse files

Remove category check

Several people have issues with this on the forum...
parent 4c3a405a
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,6 @@ class Sabnzbd(Downloader): ...@@ -92,7 +92,6 @@ class Sabnzbd(Downloader):
return False return False
for slot in history['queue']['slots']: for slot in history['queue']['slots']:
if slot['cat'] == self.conf('category'):
log.debug('Found %s in SabNZBd queue, which is %s, with %s left', (slot['filename'], slot['status'], slot['timeleft'])) log.debug('Found %s in SabNZBd queue, which is %s, with %s left', (slot['filename'], slot['status'], slot['timeleft']))
if slot['filename'] == nzbname: if slot['filename'] == nzbname:
return slot['status'].lower() return slot['status'].lower()
...@@ -119,10 +118,10 @@ class Sabnzbd(Downloader): ...@@ -119,10 +118,10 @@ class Sabnzbd(Downloader):
return return
for slot in history['history']['slots']: for slot in history['history']['slots']:
if slot['category'] == self.conf('category'):
log.debug('Found %s in SabNZBd history, which has %s', (slot['name'], slot['status'])) log.debug('Found %s in SabNZBd history, which has %s', (slot['name'], slot['status']))
if slot['name'] == nzbname: if slot['name'] == nzbname:
if slot['status'] == 'Failed' or slot['fail_message'].strip(): # Note: if post process even if failed is on in SabNZBd, it will complete with a fail message
if slot['status'] == 'Failed' or (slot['status'] == 'Completed' and slot['fail_message'].strip()):
# Delete failed download # Delete failed download
if self.conf('delete_failed', default = True): if self.conf('delete_failed', default = True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment