glut23 / webvtt-py

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

MalformedCaptionError #28

Closed VinuAbraham closed 4 years ago

VinuAbraham commented 4 years ago

MalformedCaptionError: Standalone cue identifier in line 7.

this error is showing reading a vtt file.

glut23 commented 4 years ago

Hi @VinuAbraham can you provide the first 10 lines of the vtt file?

piyh commented 4 years ago

I'm getting the same error. Downloaded with youtube-dl --write-auto-subs.

WEBVTT
Kind: captions
Language: en

00:00:00.030 --> 00:00:05.720 align:start position:0%

what's<00:00:00.719><c> up</c><00:00:00.930><c> YouTube</c><00:00:03.529><c> Jam</c><00:00:04.529><c> into</c><00:00:04.859><c> some</c><00:00:05.069><c> new</c><00:00:05.250><c> Ozzy</c>

00:00:05.720 --> 00:00:05.730 align:start position:0%
what's up YouTube Jam into some new Ozzy

I have hundreds of vtt files from youtube like this

glut23 commented 4 years ago

Hey @piyh can you send me the vtt file please? amendez23@gmail.com thanks!

piyh commented 4 years ago

Sent

VinuAbraham commented 4 years ago

Problem is with subtitles which are auto generated by youtube

glut23 commented 4 years ago

Hi @VinuAbraham and @piyh I am preparing an update that is fixing the provided captions file. I will keep you updated.

piyh commented 4 years ago

Responsive maintainers are a rare breed 🙏

glut23 commented 4 years ago

Hey @piyh I just released v0.4.4 that should fix your parsing issue. If you could test and confirm please? Thanks!

VinuAbraham commented 4 years ago

Thanks man, will test it..

piyh commented 4 years ago

Just verified after a pip3 install --upgrade webvtt-py that my script is now working

glut23 commented 4 years ago

Hey @VinuAbraham could you confirm if your issue is resolved so I can proceed to close this? Thanks.

piyh commented 4 years ago

I'd close it out, I haven't had reoccurence