stop if transcoding fails. Fixes #533

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

View file

@ -204,8 +204,9 @@ class autoProcessMovie:
logger.debug("Transcoding succeeded for files in %s" % (dirName), section)
dirName = newDirName
else:
logger.warning("Transcoding failed for files in %s" % (dirName), section)
logger.error("Transcoding failed for files in %s" % (dirName), section)
return [1, "%s: Failed to post-process - Transcoding failed" % (section) ]
if method == "manage":
command = "/manage.update"
else:

View file

@ -215,7 +215,8 @@ class autoProcessTV:
logger.debug("SUCCESS: Transcoding succeeded for files in %s" % (dirName), section)
dirName = newDirName
else:
logger.warning("FAILED: Transcoding failed for files in %s" % (dirName), section)
logger.error("FAILED: Transcoding failed for files in %s" % (dirName), section)
return [1, "%s: Failed to post-process - Transcoding failed" % (section) ]
url = None
if section == "SickBeard":

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]