1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 08:13:14 +00:00

Embedded Subtitles provider: avoid KeyError

This commit is contained in:
Vitiko 2022-10-06 16:38:56 -04:00
parent af70cf1fc9
commit 003e033c93

View file

@ -20,7 +20,7 @@ class FFprobeSubtitleStream:
:raises: LanguageNotFound, UnsupportedCodec :raises: LanguageNotFound, UnsupportedCodec
""" """
self.index = int(stream["index"]) self.index = int(stream["index"])
self.codec_name = stream["codec_name"] self.codec_name = stream.get("codec_name", "Unknown")
try: try:
self._codec = _codecs[self.codec_name] self._codec = _codecs[self.codec_name]