|
|
|
@ -5,6 +5,8 @@ from __future__ import annotations
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
|
|
from babelfish import Language
|
|
|
|
|
|
|
|
|
|
from .disposition import FFprobeSubtitleDisposition
|
|
|
|
|
from .exceptions import UnsupportedCodec
|
|
|
|
|
from .tags import FFprobeGenericSubtitleTags
|
|
|
|
@ -85,6 +87,10 @@ class FFprobeSubtitleStream:
|
|
|
|
|
# Legacy
|
|
|
|
|
return self.tags.language
|
|
|
|
|
|
|
|
|
|
@language.setter
|
|
|
|
|
def language(self, value: Language):
|
|
|
|
|
self.tags.language = value
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def extension(self):
|
|
|
|
|
return self._codec["copy_format"] or self._codec["convert_default_format"] or ""
|
|
|
|
|