mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -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)
|
logger.debug("Transcoding succeeded for files in %s" % (dirName), section)
|
||||||
dirName = newDirName
|
dirName = newDirName
|
||||||
else:
|
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":
|
if method == "manage":
|
||||||
command = "/manage.update"
|
command = "/manage.update"
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -215,7 +215,8 @@ class autoProcessTV:
|
||||||
logger.debug("SUCCESS: Transcoding succeeded for files in %s" % (dirName), section)
|
logger.debug("SUCCESS: Transcoding succeeded for files in %s" % (dirName), section)
|
||||||
dirName = newDirName
|
dirName = newDirName
|
||||||
else:
|
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
|
url = None
|
||||||
if section == "SickBeard":
|
if section == "SickBeard":
|
||||||
|
|
|
@ -504,7 +504,7 @@ def Transcode_directory(dirName):
|
||||||
except:
|
except:
|
||||||
logger.error("Transcoding of video %s has failed" % (file))
|
logger.error("Transcoding of video %s has failed" % (file))
|
||||||
|
|
||||||
if nzbtomedia.SUBSDIR:
|
if nzbtomedia.SUBSDIR and result == 0:
|
||||||
for sub in get_subs(file):
|
for sub in get_subs(file):
|
||||||
name = os.path.splitext(os.path.split(file)[1])[0]
|
name = os.path.splitext(os.path.split(file)[1])[0]
|
||||||
subname = os.path.split(sub)[1]
|
subname = os.path.split(sub)[1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue