summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xlibs/fese/__init__.py7
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