Closed leo108 closed 10 months ago
Thank you for reporting this problem. Fixed it on the dev branch https://github.com/mantas-done/subtitles/commit/1c2ec045698ebc81c2d9a61944012ed419b7c6ed. In the composer file you can use to get the newest fix:
"mantas-done/subtitles": "dev-master",
@mantas-done Awesome, do you have any plan to release a new version?
@leo108 made a new release https://github.com/mantas-done/subtitles/releases/tag/v1.0.18
If a webvtt file contains a text line which has two timestamp, it will be treated as a cue timing:
The code above will throw a
Done\Subtitles\Code\UserException
with messageTime doesn't have milliseconds: 08:00.
, this is because the line08:00 next Thursday, or 09:00
was parsed as a cue timing line here https://github.com/mantas-done/subtitles/blob/master/src/Code/Converters/VttConverter.php#L27