mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 00:03:33 +00:00
Embedded Subtitles provider: avoid KeyError
This commit is contained in:
parent
af70cf1fc9
commit
003e033c93
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue