mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
Fix transcoding runtime errors.
This commit is contained in:
parent
324386cff6
commit
bec783fecf
2 changed files with 4 additions and 3 deletions
|
@ -304,6 +304,7 @@ def buildCommands(file, newDir):
|
|||
s_mapped = []
|
||||
subs1 = []
|
||||
burnt = 0
|
||||
n = 0
|
||||
for lan in nzbtomedia.SLANGUAGES:
|
||||
try:
|
||||
subs1 = [ item for item in subStreams if item["tags"]["language"] == lan ]
|
||||
|
@ -399,7 +400,7 @@ def extract_subs(file, newfilePath, bitbucket):
|
|||
logger.info("Extracting %s Subtitle from: %s" % (lan, file))
|
||||
cmd = ""
|
||||
for item in command:
|
||||
cmd = cmd + " " + item
|
||||
cmd = cmd + " " + str(item)
|
||||
logger.debug("calling command:%s" % (cmd))
|
||||
result = 1 # set result to failed in case call fails.
|
||||
try:
|
||||
|
@ -445,7 +446,7 @@ def Transcode_directory(dirName):
|
|||
logger.info("Transcoding video: %s" % (file))
|
||||
cmd = ""
|
||||
for item in command:
|
||||
cmd = cmd + " " + item
|
||||
cmd = cmd + " " + str(item)
|
||||
logger.debug("calling command:%s" % (cmd))
|
||||
result = 1 # set result to failed in case call fails.
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue