better language

This commit is contained in:
2026-02-11 22:39:43 +01:00
parent 2706a21818
commit f1d6311b3d
+2 -3
View File
@@ -60,8 +60,7 @@ def get_preferred_audio_stream_index(path: Path) -> int | None:
"ffprobe",
"-v", "quiet",
"-print_format", "json",
"-show_entries", "stream=index,codec_type",
"-show_entries", "stream_tags=language",
"-show_entries", "stream=index,codec_type:stream_tags=language",
str(path),
],
capture_output=True,
@@ -85,7 +84,7 @@ def get_preferred_audio_stream_index(path: Path) -> int | None:
audio_streams.append((idx, lang, raw))
if not audio_streams:
return None
dutch = ("nld", "dut", "nl")
dutch = ("nld", "dut", "nl", "dutch", "nederlands")
flemish = ("vls", "nl-be", "nlb")
for idx, lang, raw in audio_streams:
if lang in dutch or raw in dutch: