mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
added check for language tag size. Fixes #1087
This commit is contained in:
parent
549a920511
commit
e5a46f581d
1 changed files with 4 additions and 2 deletions
|
@ -430,8 +430,10 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
||||||
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:{x}'.format(x=len(s_mapped) + n),
|
lansplit = lan.split('-')
|
||||||
'language={lang}'.format(lang=lan[1:])])
|
if len(lansplit[0]) == 3 and ( len(lansplit) == 1 or ( len(lansplit) == 2 and len(lansplit[1]) == 2 ) ):
|
||||||
|
meta_cmd.extend(['-metadata:s:s:{x}'.format(x=len(s_mapped) + n),
|
||||||
|
'language={lang}'.format(lang=lan[1:])])
|
||||||
n += 1
|
n += 1
|
||||||
map_cmd.extend(['-map', '{x}:0'.format(x=n)])
|
map_cmd.extend(['-map', '{x}:0'.format(x=n)])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue