From cf7aa2b062e35cfc851bb1868d2d84466c7d21c6 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 10 Dec 2012 17:37:32 -0800 Subject: [PATCH] Exit for standard branch when status is failed. --- autoProcessTV.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoProcessTV.py b/autoProcessTV.py index cbb26939..b696fbf0 100644 --- a/autoProcessTV.py +++ b/autoProcessTV.py @@ -83,11 +83,15 @@ def processEpisode(dirName, nzbName=None, status=0): params['quiet'] = 1 - #this is our default behaviour to work with the standard Master branch of SickBeard + # this is our default behaviour to work with the standard Master branch of SickBeard if failed_fork == 0: params['dir'] = dirName if nzbName != None: params['nzbName'] = nzbName + # the standard Master bamch of SickBeard cannot process failed downloads. So Exit here. + if status != 0: + print "the download failed. nothing to process" + sys.exit() # if you have specified you are using development branch from fork https://github.com/Tolstyak/Sick-Beard.git else: params['dirName'] = dirName