fix(ffmpeg handling): add language tag to is russian identification

This commit is contained in:
lucas committed 2026-10-26 13:00:58 +01:00
1 parent d43fcd530c
commit b672696f91
2 files changed
+89 -63

No files matched your search

+2
View File
@@ -223,6 +223,8 @@ def get_audio_tracks(
or stream.get("tags", {}).get("language")
or f"Track {stream['index']}"
),
"lang": stream.get("lang", ""),
"language": stream.get("tags", {}).get("language", ""),
"primary": stream.get("codec_type") == "audio"
and stream.get("disposition", {}).get("default") == 1,
}