mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-12-29 11:01:21 +08:00
no log: update fese library
This commit is contained in:
parent
be75d78b93
commit
24db17cd03
2 changed files with 8 additions and 1 deletions
|
@ -4,4 +4,4 @@
|
|||
from .container import FFprobeVideoContainer
|
||||
from .stream import FFprobeSubtitleStream
|
||||
|
||||
__version__ = "0.2.6"
|
||||
__version__ = "0.2.7"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -35,6 +38,10 @@ class FFprobeGenericSubtitleTags:
|
|||
logger.debug("Unable to detect tags class. Using generic")
|
||||
return FFprobeGenericSubtitleTags(data)
|
||||
|
||||
@property
|
||||
def language_fallback(self):
|
||||
return self._language_fallback
|
||||
|
||||
@property
|
||||
def suffix(self):
|
||||
lang = self.language.alpha2
|
||||
|
|
Loading…
Reference in a new issue