From 94110f32984f3749cf96a1de8fa26ae672969ebd Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 17 Jul 2014 10:38:20 +0930 Subject: [PATCH] fix "!" references for SABnzbd. Fixes #493 Fixes #495 Fixes #496 --- nzbToMedia.py | 4 ++-- nzbtomedia/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nzbToMedia.py b/nzbToMedia.py index 025fb845..6e88aab2 100755 --- a/nzbToMedia.py +++ b/nzbToMedia.py @@ -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) diff --git a/nzbtomedia/__init__.py b/nzbtomedia/__init__.py index 6db6cff4..c2642d6f 100644 --- a/nzbtomedia/__init__.py +++ b/nzbtomedia/__init__.py @@ -202,11 +202,11 @@ def initialize(section=None): return False if not makeDir(LOG_DIR): - print("No log folder, logging to screen only!") + print("No log folder, logging to screen only") MYAPP = RunningProcess() while MYAPP.alreadyrunning(): - print("Waiting for existing session to end!") + print("Waiting for existing session to end") time.sleep(30) try: