glut23 / webvtt-py

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

SRT parser cannot handle empty captions. #6

Closed sampattuzzi closed 4 years ago

sampattuzzi commented 7 years ago

If there is a double empty line, this should indicate that the caption slot is empty. Software such as Camtasia will generate SRTs with such empty slots.

The a more compatible behaviour would be to parse them as captions with empty content.

sampattuzzi commented 7 years ago

Had a stab at fixing here: https://github.com/glut23/webvtt-py/pull/9

ishunyu commented 4 years ago

Hi, I've also done a PR for same support for SBV files. #26