fix "!" references for SABnzbd. Fixes #493 Fixes #495 Fixes #496

This commit is contained in:
clinton-hall 2014-07-17 10:38:20 +09:30
commit 94110f3298
2 changed files with 4 additions and 4 deletions

View file

@ -737,14 +737,14 @@ def main(args, section=None):
if result[0] == 0:
logger.info("The %s script completed successfully." % args[0])
if result[1]:
print result[1] # For SABnzbd Status display.
print result[1] + "!" # For SABnzbd Status display.
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 result[1]:
print result[1] # For SABnzbd Status display.
print result[1] + "!" # For SABnzbd Status display.
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
del nzbtomedia.MYAPP
return (nzbtomedia.NZBGET_POSTPROCESS_ERROR)