mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fix for NzbGet exit status
This commit is contained in:
parent
b6c1967ee7
commit
3a637cc86d
1 changed files with 4 additions and 4 deletions
|
@ -436,13 +436,13 @@ def main(args, section=None):
|
|||
if result == 0:
|
||||
logger.info("The %s script completed successfully." % args[0])
|
||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||
sys.exit(nzbtomedia.NZBGET_POSTPROCESS_SUCCESS)
|
||||
return(nzbtomedia.NZBGET_POSTPROCESS_SUCCESS)
|
||||
else:
|
||||
logger.error("A problem was reported in the %s script." % args[0])
|
||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||
sys.exit(nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
||||
return(nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
||||
|
||||
sys.exit(result)
|
||||
return(result)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
exit(main(sys.argv))
|
Loading…
Add table
Add a link
Reference in a new issue