diff options
author | Vitiko <[email protected]> | 2022-05-04 22:56:35 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2022-05-05 00:04:37 -0400 |
commit | 0427c83cdade5622e176ba81d16f6a7eaad2309b (patch) | |
tree | 999b3a29830f5cc654b3ee1c9e99e20779c06fa3 /libs | |
parent | 0bfaf7a36cb433cb91215dd549c9eaa37c95c7fd (diff) | |
download | bazarr-0427c83cdade5622e176ba81d16f6a7eaad2309b.tar.gz bazarr-0427c83cdade5622e176ba81d16f6a7eaad2309b.zip |
no log: update fese library
Diffstat (limited to 'libs')
-rwxr-xr-x | libs/fese/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/fese/__init__.py b/libs/fese/__init__.py index 0c30ad013..fbe3f44b7 100755 --- a/libs/fese/__init__.py +++ b/libs/fese/__init__.py @@ -14,7 +14,7 @@ from babelfish import Language from babelfish.exceptions import LanguageError import pysubs2 -__version__ = "0.1.3" +__version__ = "0.1.4" logger = logging.getLogger(__name__) @@ -127,6 +127,11 @@ class FFprobeSubtitleStream: self.time_base = stream.get("time_base") self.tags = stream.get("tags", {}) self.start_time = float(stream.get("start_time", 0)) + # TODO: separate tags + self.number_of_frames = int(self.tags.get("NUMBER_OF_FRAMES", 0)) + self.number_of_frames_eng = int( + self.tags.get("NUMBER_OF_FRAMES-eng", self.number_of_frames) + ) self.duration, self.duration_ts = 0, 0 |