From 003e033c937c111cb57684df897cdc9e917c815c Mon Sep 17 00:00:00 2001 From: Vitiko Date: Thu, 6 Oct 2022 16:38:56 -0400 Subject: [PATCH] Embedded Subtitles provider: avoid KeyError --- libs/fese/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]