fix(ffmpeg handling): add language tag to is russian identification
This commit is contained in:
1 parent
d43fcd530c
commit
b672696f91
2 files changed
+89
-63
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user