mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Streamline core.processor.nzbget._parse_total_status
This commit is contained in:
parent
e3e4a8a5dc
commit
5eb98b67ef
1 changed files with 6 additions and 7 deletions
|
@ -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():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue