Skip to content

Commit

Permalink
fix streams list variable in commentary check
Browse files Browse the repository at this point in the history
  • Loading branch information
yajrendrag committed Dec 2, 2024
1 parent d002eb0 commit 03e01ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions source/convert_multichan_audio_to_2ch/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

**<span style="color:#56adda">0.0.11</span>**
- fix streams list variable in commentary check

**<span style="color:#56adda">0.0.10</span>**
- add option to set 2 channel stereo stream as default stream
- along with above specify an option for stream language to use as default in case of multiple 2 channel streams
- ensure commentary streams are not counted as existing stereo streams
Expand Down
2 changes: 1 addition & 1 deletion source/convert_multichan_audio_to_2ch/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"on_worker_process": 0
},
"tags": "audio,encoder,ffmpeg,library file test",
"version": "0.0.10"
"version": "0.0.11"
}
2 changes: 1 addition & 1 deletion source/convert_multichan_audio_to_2ch/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def streams_to_stereo_encode(probe_streams):
streams = []
stereo_streams = [probe_streams[i]['tags']['language'] for i in range(len(probe_streams)) if probe_streams[i]['codec_type'] == 'audio' and
'tags' in probe_streams[i] and 'language' in probe_streams[i]['tags'] and probe_streams[i]['channels'] == 2 and
"commentary" not in streams[i]["tags"]["title"].lower()]
"commentary" not in probe_streams[i]["tags"]["title"].lower()]
for i in range(0, len(probe_streams)):
if "codec_type" in probe_streams[i] and probe_streams[i]["codec_type"] == "audio":
audio_stream += 1
Expand Down

0 comments on commit 03e01ea

Please sign in to comment.