summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVitiko <[email protected]>2022-10-06 16:38:56 -0400
committerVitiko <[email protected]>2022-10-06 16:40:54 -0400
commit003e033c937c111cb57684df897cdc9e917c815c (patch)
tree7b523635c3a59b63777998dafbcaddc890b896bb
parentaf70cf1fc9c908494d3d2e5877d9dbfa0cd7a223 (diff)
downloadbazarr-003e033c937c111cb57684df897cdc9e917c815c.tar.gz
bazarr-003e033c937c111cb57684df897cdc9e917c815c.zip
Embedded Subtitles provider: avoid KeyError
-rwxr-xr-xlibs/fese/stream.py2
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]