glut23 / webvtt-py

Read, write, convert and segment WebVTT caption files in Python.
MIT License
188 stars 56 forks source link

Fix slice_segments #36 #70

Open t-hiroishi opened 1 month ago

t-hiroishi commented 1 month ago

Fix #36

The IndexError occurs when the end_in_seconds of the last caption is divisible by the seconds value (the number of seconds for each segment).

captions.vtt

WEBVTT

00:00.000 --> 00:09.000
It's OK.

00:09.000 --> 00:10.000
Fix me!

CLI

$ webvtt segment captions.vtt --output output/path