Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WebVTT timeframes in MS Teams' non-compliant format #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

apetresc
Copy link

@apetresc apetresc commented Nov 7, 2022

Microsoft Teams generates .VTT transcript files for all recorded meetings. Unfortunately, it appears those files are not spec-conforming (shocker!), because they don't 0-pad any of the fields to their respective sizes (3 for milliseconds, 2 for everything else).

Pragmatically speaking, it would help for webvtt-py to support this, since it doesn't harm its ability to correctly and safely parse conforming ones. This patch does that, and adds a testcase for a representative Teams VTT.

Closes #44 among many others, I'm sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MalformedCaptionError: Invalid Time Format
1 participant