glut23 / webvtt-py

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

existing metadata header not preserved when writing #48

Open dodysw2 opened 1 year ago

dodysw2 commented 1 year ago

Would love to be able to read, update, and write vtt with the metadata header intact. E.g.

WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:126000

00:00:00.000 --> 00:00:02.000
 Hello there