mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 05:01:10 -07:00
traverse audiostreams in reverse: Fixes #1180
This commit is contained in:
parent
3af8bc7885
commit
9ec9b13028
1 changed files with 2 additions and 2 deletions
|
@ -256,10 +256,10 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
|||
a_mapped = []
|
||||
commentary = []
|
||||
if audioStreams:
|
||||
for i, val in enumerate(audioStreams):
|
||||
for i, val in reversed(list(enumerate(audioStreams))):
|
||||
try:
|
||||
if "Commentary" in val.get("tags").get("title"): # Split out commentry tracks.
|
||||
commentary.append(audioStreams[i])
|
||||
commentary.append(val)
|
||||
del audioStreams[i]
|
||||
except:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue