|
|
@ -163,12 +163,12 @@ class NZBGet(DownloaderBase): |
|
|
|
nzb_id = nzb['NZBID'] |
|
|
|
|
|
|
|
if nzb_id in ids: |
|
|
|
log.debug('Found %s in NZBGet history. ParStatus: %s, ScriptStatus: %s, Log: %s', (nzb['NZBFilename'] , nzb['ParStatus'], nzb['ScriptStatus'] , nzb['Log'])) |
|
|
|
log.debug('Found %s in NZBGet history. TotalStatus: %s, ParStatus: %s, ScriptStatus: %s, Log: %s', (nzb['NZBFilename'] , nzb['Status'], nzb['ParStatus'], nzb['ScriptStatus'] , nzb['Log'])) |
|
|
|
release_downloads.append({ |
|
|
|
'id': nzb_id, |
|
|
|
'name': nzb['NZBFilename'], |
|
|
|
'status': 'completed' if nzb['ParStatus'] in ['SUCCESS', 'NONE'] and nzb['ScriptStatus'] in ['SUCCESS', 'NONE'] else 'failed', |
|
|
|
'original_status': nzb['ParStatus'] + ', ' + nzb['ScriptStatus'], |
|
|
|
'status': 'completed' if 'SUCCESS' in nzb['Status'] else 'failed', |
|
|
|
'original_status': nzb['Status'], |
|
|
|
'timeleft': str(timedelta(seconds = 0)), |
|
|
|
'folder': sp(nzb['DestDir']) |
|
|
|
}) |
|
|
|