mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
add check for running instance. Fixes #466
This commit is contained in:
parent
863fd3ef5c
commit
8a58dedd1d
6 changed files with 93 additions and 7 deletions
|
@ -722,12 +722,14 @@ 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
|
||||
del nzbtomedia.MYAPP
|
||||
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
|
||||
del nzbtomedia.MYAPP
|
||||
return (nzbtomedia.NZBGET_POSTPROCESS_ERROR)
|
||||
|
||||
del nzbtomedia.MYAPP
|
||||
return (result)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue