From f1efff462ba38a0183667c648e83425eb9f2db8c Mon Sep 17 00:00:00 2001 From: realfinder <2512153+realfinder@users.noreply.github.com> Date: Fri, 28 May 2021 20:23:11 +0300 Subject: [PATCH] fixing Bookmarks from Subtitle --- Bookmarks from Subtitle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bookmarks from Subtitle.py b/Bookmarks from Subtitle.py index ae760d2..30549c7 100644 --- a/Bookmarks from Subtitle.py +++ b/Bookmarks from Subtitle.py @@ -1,5 +1,6 @@ import re import cPickle +from math import ceil fps = avsp.GetVideoFramerate() oldBookmarks = avsp.GetBookmarkList() @@ -29,7 +30,7 @@ if sections: for ss, hr, min, sec in sections: sec = int(hr)*3600 + int(min)*60 + float(sec) - bookmark = int(round((sec+0.0209)*fps)) + bookmark = ceil(sec*fps) bookmarkDict[bookmark] = '' if bookmarkDict: bookmarkList = bookmarkDict.items()