mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -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 = []
|
a_mapped = []
|
||||||
commentary = []
|
commentary = []
|
||||||
if audioStreams:
|
if audioStreams:
|
||||||
for i, val in enumerate(audioStreams):
|
for i, val in reversed(list(enumerate(audioStreams))):
|
||||||
try:
|
try:
|
||||||
if "Commentary" in val.get("tags").get("title"): # Split out commentry tracks.
|
if "Commentary" in val.get("tags").get("title"): # Split out commentry tracks.
|
||||||
commentary.append(audioStreams[i])
|
commentary.append(val)
|
||||||
del audioStreams[i]
|
del audioStreams[i]
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue