diff --git a/source/convert_multichan_audio_to_2ch/changelog.md b/source/convert_multichan_audio_to_2ch/changelog.md index 8d98d4167..afbc21bad 100644 --- a/source/convert_multichan_audio_to_2ch/changelog.md +++ b/source/convert_multichan_audio_to_2ch/changelog.md @@ -1,5 +1,8 @@ **0.0.11** +- fix streams list variable in commentary check + +**0.0.10** - 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 diff --git a/source/convert_multichan_audio_to_2ch/info.json b/source/convert_multichan_audio_to_2ch/info.json index 46279973c..0eaf32444 100644 --- a/source/convert_multichan_audio_to_2ch/info.json +++ b/source/convert_multichan_audio_to_2ch/info.json @@ -15,5 +15,5 @@ "on_worker_process": 0 }, "tags": "audio,encoder,ffmpeg,library file test", - "version": "0.0.10" + "version": "0.0.11" } diff --git a/source/convert_multichan_audio_to_2ch/plugin.py b/source/convert_multichan_audio_to_2ch/plugin.py index 9bfda3532..c15afd2f3 100644 --- a/source/convert_multichan_audio_to_2ch/plugin.py +++ b/source/convert_multichan_audio_to_2ch/plugin.py @@ -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