Invalid WebVTT files #24

Closed
opened 2023-01-04 18:22:07 +00:00 by Barbagus · 0 comments
Collaborator

It seems ArteTV ships some invalid WebVTT files often enough to be addressed. Mostly I've had blank lines inserted in a caption's body (which is not allowed by specification)

I think it would not be fair nor wise to modify the webvtt-py module to accept such invalid files. Instead I am thinking about preprocessing the vtt data before feeding it to the parser.

It seems ArteTV ships some invalid WebVTT files often enough to be addressed. Mostly I've had blank lines inserted in a caption's body (which is not allowed by [specification](https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API)) I think it would not be fair nor wise to modify the [webvtt-py](https://pypi.org/project/webvtt-py/) module to accept such invalid files. Instead I am thinking about _preprocessing_ the vtt data before feeding it to the parser.
Barbagus referenced this issue from a commit 2023-01-06 00:22:47 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fcode/delarte#24
No description provided.