summaryrefslogblamecommitdiffstats
path: root/2020/subtitles/fix.py
blob: 709febb7121b4b6a141638657dda5cbf2ca03952 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                    
import webvtt
filename = "emacsconf-2020-06--trivial-emacs-kits--corwin-brust.sbv"
if (filename.find('sbv')):
    vtt = webvtt.from_sbv(filename)
length = len(vtt)
for i in range(0, length - 1):
    vtt[i].end = vtt[i + 1].start
vtt.save()