stop if transcoding fails. Fixes #533

This commit is contained in:
clinton-hall 2014-08-14 11:40:15 +09:30
parent 7d25a4206e
commit f57b194162
3 changed files with 6 additions and 4 deletions

View file

@ -504,7 +504,7 @@ def Transcode_directory(dirName):
except:
logger.error("Transcoding of video %s has failed" % (file))
if nzbtomedia.SUBSDIR:
if nzbtomedia.SUBSDIR and result == 0:
for sub in get_subs(file):
name = os.path.splitext(os.path.split(file)[1])[0]
subname = os.path.split(sub)[1]