Skip to content

Commit

Permalink
fixing Bookmarks from Subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
realfinder authored May 28, 2021
1 parent 8db5f7e commit f1efff4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bookmarks from Subtitle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import re
import cPickle
from math import ceil

fps = avsp.GetVideoFramerate()
oldBookmarks = avsp.GetBookmarkList()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f1efff4

Please sign in to comment.