Skip to content
New issue

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

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

Already on GitHub? # to your account

A Webvtt file with identifiers and empty cue results in adding the identifier as subtitle. #287

Open
chairajappa opened this issue Mar 31, 2022 · 1 comment

Comments

@chairajappa
Copy link

chairajappa commented Mar 31, 2022

pyCaption released a version (1.0.4) that allows empty cue without throwing any error.

I noticed a bug in a scenario, where a webVtt file with identifier and empty cue results in adding the identifier as a subtitle. The latest version 2.0.7 has the same issue.

e.g.
1
00:00:19.866 --> 00:00:29.800
subtitle 1

2
00:00:29.933 --> 00:00:37.500

3
00:00:37.600 --> 00:00:43.601
subtitle 2

Converted vtt file

00:19.866 --> 00:29.800
subtitle 1

00:37.600 --> 00:43.601
3
subtitle 2

00:43.666 --> 00:46.500
subtitle 3

@chairajappa
Copy link
Author

testFiles.zip

Please find the test file and pyCaptions output in the attached file.

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

No branches or pull requests

1 participant