From d3adf45eb8dcaceb118b30c17b924043e3e5166b Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sun, 16 Nov 2014 12:05:13 +1030 Subject: [PATCH] exit as failed for NZBDrone. #583 --- nzbtomedia/autoProcess/autoProcessTV.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nzbtomedia/autoProcess/autoProcessTV.py b/nzbtomedia/autoProcess/autoProcessTV.py index 29b4d34b..10b6f8a2 100644 --- a/nzbtomedia/autoProcess/autoProcessTV.py +++ b/nzbtomedia/autoProcess/autoProcessTV.py @@ -223,8 +223,11 @@ class autoProcessTV: else: if failureLink: reportNzb(failureLink, clientAgent) - if fork in nzbtomedia.SICKBEARD_FAILED or section == "NzbDrone": + if fork in nzbtomedia.SICKBEARD_FAILED: logger.postprocess("FAILED: The download failed. Sending 'failed' process request to %s branch" % (fork), section) + elif section == "NzbDrone": + logger.postprocess("FAILED: The download failed. Sending failed download to %s for CDH processing" % (fork), section) + return [1, "%s: Downlaod Failed. Sending back to %s" % (section, section) ] # Return as failed to flag this in the downloader. else: logger.postprocess("FAILED: The download failed. %s branch does not handle failed downloads. Nothing to process" % (fork), section) if delete_failed and os.path.isdir(dirName) and not os.path.dirname(dirName) == dirName: