diff options
author | Vitiko <[email protected]> | 2022-10-06 16:38:56 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2022-10-06 16:40:54 -0400 |
commit | 003e033c937c111cb57684df897cdc9e917c815c (patch) | |
tree | 7b523635c3a59b63777998dafbcaddc890b896bb /libs/fese | |
parent | af70cf1fc9c908494d3d2e5877d9dbfa0cd7a223 (diff) | |
download | bazarr-003e033c937c111cb57684df897cdc9e917c815c.tar.gz bazarr-003e033c937c111cb57684df897cdc9e917c815c.zip |
Embedded Subtitles provider: avoid KeyError
Diffstat (limited to 'libs/fese')
-rwxr-xr-x | libs/fese/stream.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/fese/stream.py b/libs/fese/stream.py index 3c73b1d3c..1039cdd8b 100755 --- a/libs/fese/stream.py +++ b/libs/fese/stream.py @@ -20,7 +20,7 @@ class FFprobeSubtitleStream: :raises: LanguageNotFound, UnsupportedCodec """ self.index = int(stream["index"]) - self.codec_name = stream["codec_name"] + self.codec_name = stream.get("codec_name", "Unknown") try: self._codec = _codecs[self.codec_name] |