fix indexing of subfiles. Fixes #619

This commit is contained in:
clinton-hall 2014-11-20 20:18:42 +10:30
parent e0b7ec3c23
commit 55195a353b

View file

@ -461,9 +461,9 @@ def buildCommands(file, newDir, movieName, bitbucket):
if nzbtomedia.SEMBED and os.path.isfile(file):
filenum = 1
for subfile in get_subs(file):
n += 1
command.extend(['-i', subfile])
map_cmd.extend(['-map', n])
n += 1
command.extend(map_cmd)
command.extend(video_cmd)