mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-13 18:16:52 -07:00
Exit for standard branch when status is failed.
This commit is contained in:
parent
65b20faf06
commit
cf7aa2b062
1 changed files with 5 additions and 1 deletions
|
@ -83,11 +83,15 @@ def processEpisode(dirName, nzbName=None, status=0):
|
||||||
|
|
||||||
params['quiet'] = 1
|
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:
|
if failed_fork == 0:
|
||||||
params['dir'] = dirName
|
params['dir'] = dirName
|
||||||
if nzbName != None:
|
if nzbName != None:
|
||||||
params['nzbName'] = nzbName
|
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
|
# if you have specified you are using development branch from fork https://github.com/Tolstyak/Sick-Beard.git
|
||||||
else:
|
else:
|
||||||
params['dirName'] = dirName
|
params['dirName'] = dirName
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue