Embedded Subtitles provider: avoid KeyError

pull/1967/head
Vitiko 2 years ago
parent af70cf1fc9
commit 003e033c93

@ -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]

Loading…
Cancel
Save