mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -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():
|
||||
"""Parse nzbget par status from environment."""
|
||||
status = 0
|
||||
if os.environ['NZBPP_PARSTATUS'] == '1' or os.environ[
|
||||
'NZBPP_PARSTATUS'] == '4':
|
||||
par_status = os.environ['NZBPP_PARSTATUS']
|
||||
if par_status == '1' or par_status == '4':
|
||||
logger.warning('Par-repair failed, setting status \'failed\'')
|
||||
status = 1
|
||||
return status
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
def parse_status():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue