Embedded Subtitles provider: improve streams parsing

Fix made updating fese to latest version
pull/2021/head v1.1.4-beta.5
Vitiko 2 years ago
parent 6693b98811
commit 7640a6d5a4

@ -4,4 +4,4 @@
from .container import FFprobeVideoContainer
from .stream import FFprobeSubtitleStream
__version__ = "0.2.5"
__version__ = "0.2.6"

@ -41,8 +41,7 @@ class FFprobeSubtitleStream:
)
self.disposition = FFprobeSubtitleDisposition(stream.get("disposition", {}))
if stream.get("tags") is not None:
self.disposition.update_from_tags(stream["tags"])
self.disposition.update_from_tags(stream.get("tags", {}) or {})
def convert_args(self, convert_format, outfile):
"""

Loading…
Cancel
Save