From 55195a353b236357c6468c961df52433bd471064 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 20 Nov 2014 20:18:42 +1030 Subject: [PATCH] fix indexing of subfiles. Fixes #619 --- nzbtomedia/transcoder/transcoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nzbtomedia/transcoder/transcoder.py b/nzbtomedia/transcoder/transcoder.py index 8ad60498..01f7e2a0 100644 --- a/nzbtomedia/transcoder/transcoder.py +++ b/nzbtomedia/transcoder/transcoder.py @@ -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)