mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Streamline core.processor.nzbget._parse_par_status
This commit is contained in:
parent
ab006eefb2
commit
8e96d17537
1 changed files with 4 additions and 5 deletions
|
@ -40,12 +40,11 @@ def _parse_total_status():
|
||||||
|
|
||||||
def _parse_par_status():
|
def _parse_par_status():
|
||||||
"""Parse nzbget par status from environment."""
|
"""Parse nzbget par status from environment."""
|
||||||
status = 0
|
par_status = os.environ['NZBPP_PARSTATUS']
|
||||||
if os.environ['NZBPP_PARSTATUS'] == '1' or os.environ[
|
if par_status == '1' or par_status == '4':
|
||||||
'NZBPP_PARSTATUS'] == '4':
|
|
||||||
logger.warning('Par-repair failed, setting status \'failed\'')
|
logger.warning('Par-repair failed, setting status \'failed\'')
|
||||||
status = 1
|
return 1
|
||||||
return status
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def parse_status():
|
def parse_status():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue