diff options
author | Vitiko <[email protected]> | 2023-01-19 00:50:15 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2023-01-19 00:50:15 -0400 |
commit | 24db17cd03c1259ebf20d5da51e054f7288ae8ea (patch) | |
tree | 33969ab3f210ca076b206de89156a02bbcac807f /libs/fese | |
parent | be75d78b939ca8b798c50d9c95b5d8b98ada984d (diff) | |
download | bazarr-24db17cd03c1259ebf20d5da51e054f7288ae8ea.tar.gz bazarr-24db17cd03c1259ebf20d5da51e054f7288ae8ea.zip |
no log: update fese library
Diffstat (limited to 'libs/fese')
-rwxr-xr-x | libs/fese/__init__.py | 2 | ||||
-rw-r--r-- | libs/fese/tags.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libs/fese/__init__.py b/libs/fese/__init__.py index 243201ef2..8a94470ce 100755 --- a/libs/fese/__init__.py +++ b/libs/fese/__init__.py @@ -4,4 +4,4 @@ from .container import FFprobeVideoContainer from .stream import FFprobeSubtitleStream -__version__ = "0.2.6" +__version__ = "0.2.7" diff --git a/libs/fese/tags.py b/libs/fese/tags.py index eee5c336e..b846fffea 100644 --- a/libs/fese/tags.py +++ b/libs/fese/tags.py @@ -15,11 +15,14 @@ class FFprobeGenericSubtitleTags: _DETECTABLE_TAGS = None def __init__(self, data: dict): + self._language_fallback = False + try: self.language = _get_language(data) except LanguageNotFound: if LANGUAGE_FALLBACK is not None: self.language = Language.fromietf(LANGUAGE_FALLBACK) + self._language_fallback = True else: raise @@ -36,6 +39,10 @@ class FFprobeGenericSubtitleTags: return FFprobeGenericSubtitleTags(data) @property + def language_fallback(self): + return self._language_fallback + + @property def suffix(self): lang = self.language.alpha2 if self.language.country is not None: |