mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
convert n to string. Fixes #678
This commit is contained in:
parent
bf6a397f47
commit
17b7fcd43a
1 changed files with 2 additions and 2 deletions
|
@ -455,13 +455,13 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
||||||
if nzbtomedia.SEMBED and os.path.isfile(file):
|
if nzbtomedia.SEMBED and os.path.isfile(file):
|
||||||
for subfile in get_subs(file):
|
for subfile in get_subs(file):
|
||||||
sub_details, result = getVideoDetails(subfile)
|
sub_details, result = getVideoDetails(subfile)
|
||||||
if result != 0 or not sub_details.get("streams"):
|
if not sub_details or not sub_details.get("streams"):
|
||||||
continue
|
continue
|
||||||
lan = os.path.splitext(os.path.splitext(subfile)[0])[1]
|
lan = os.path.splitext(os.path.splitext(subfile)[0])[1]
|
||||||
command.extend(['-i', subfile])
|
command.extend(['-i', subfile])
|
||||||
meta_cmd.extend(['-metadata:s:s:' + str(len(s_mapped) + n), 'language=' + lan[1:]])
|
meta_cmd.extend(['-metadata:s:s:' + str(len(s_mapped) + n), 'language=' + lan[1:]])
|
||||||
n += 1
|
n += 1
|
||||||
map_cmd.extend(['-map', n + ':0'])
|
map_cmd.extend(['-map', str(n) + ':0'])
|
||||||
|
|
||||||
if not nzbtomedia.ALLOWSUBS or (not s_mapped and not n):
|
if not nzbtomedia.ALLOWSUBS or (not s_mapped and not n):
|
||||||
sub_cmd.extend(['-sn'])
|
sub_cmd.extend(['-sn'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue