From 5905622145f4ee2c923feb93c70c3f2266ef040a Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 30 Apr 2014 06:42:35 +0930 Subject: [PATCH] correct status check for nzbdrone. fixes #346 --- nzbtomedia/autoProcess/autoProcessTV.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nzbtomedia/autoProcess/autoProcessTV.py b/nzbtomedia/autoProcess/autoProcessTV.py index 616023d7..88240f84 100644 --- a/nzbtomedia/autoProcess/autoProcessTV.py +++ b/nzbtomedia/autoProcess/autoProcessTV.py @@ -151,7 +151,9 @@ class autoProcessTV: for line in r.iter_lines(): if line: logger.postprocess("%s" % (line), section) - if "Processing succeeded for" in line: # We set Success based on the last non-empty line in the output. + if section == "SickBeard" and "Processing succeeded for" in line: + Success = True + elif section == "NzbDrone" and "stateChangeTime" in line: Success = True if status != 0 and delete_failed and not os.path.dirname(dirName) == dirName: