Skip to content

Commit

Permalink
catch cameras without tags in stream
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 23, 2024
1 parent fb0b503 commit 68ea24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bd_to_avp/modules/sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_languages_in_mkv(mkv_path: Path) -> None | list[dict[str, str]]:
for stream in subtitle_streams:
info = {
"index": stream["index"],
"language": stream["tags"].get("language", "und"), # 'und' stands for undefined
"language": stream.get("tags", {}).get("language", "und") or "und",
"default": stream["disposition"].get("default", 0),
"forced": stream["disposition"].get("forced", 0),
}
Expand Down

0 comments on commit 68ea24a

Please sign in to comment.