Streamline core.processor.nzbget._parse_total_status

This commit is contained in:
Brian Sheldon 2022-11-25 10:25:43 -05:00
commit 5eb98b67ef

View file

@ -30,13 +30,12 @@ def parse_failure_link():
def _parse_total_status(): def _parse_total_status():
status = 0 status_summary = os.environ['NZBPP_TOTALSTATUS']
if not os.environ['NZBPP_TOTALSTATUS'] == 'SUCCESS': if status_summary != 'SUCCESS':
logger.info('Download failed with status {0}.'.format( status = os.environ['NZBPP_STATUS']
os.environ['NZBPP_STATUS'])) logger.info('Download failed with status {0}.'.format(status))
status = 1 return 1
return status return 0
return status
def parse_status(): def parse_status():