glut23 / webvtt-py

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

MalformedCaptionError: Standalone cue identifier in line 975 #47

Closed AminodinAkbari closed 5 months ago

AminodinAkbari commented 1 year ago

hey @glut23 i used webvtt-py 0.4.6 and i get this error webvtt.errors.MalformedCaptionError: Standalone cue identifier in line 975.

it's that a bug in library right? what can i do for it ?

barbagus commented 1 year ago

It would help to see your input file around line 975 to say anything. Most probably it indicates your input is actually malformed. I ran into similar issues and this library is actually strict with the specs.

AminodinAkbari commented 5 months ago

Hey,

Big apologies for vanishing from this thread! I actually haven't had access to my GitHub account for a few months and totally missed out on responding here. @glut23 (& @barbagus), really sorry I missed your question—it slipped through the cracks during this time. I’ll catch up on it as soon as I’m back in.

Quick update: I managed to sort out the access issue. It was due to a heavy load on our server which didn’t have enough resources to handle it, nothing technically wrong with your library.

Thanks for your patience!

glut23 commented 5 months ago

Hey @AminodinAkbari just to let you know that I released 0.5.0 recently and I made the library less strict ignoring blocks that do not conform to specs instead of raising exceptions. Give a try if you can and let me know any feedback. Thanks!