mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
stop if transcoding fails. Fixes #533
This commit is contained in:
parent
7d25a4206e
commit
f57b194162
3 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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":
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue