subtitles error? error at 2:8: expected one of `,`, `[0-9]`
jaroslaw-weber opened this issue · 2 comments
I tried to make flashcards from youtube video, but I get an error:
error at 2:8: expected one of `,`, `[0-9]`
Something is wrong with the subtitles?
Edit: Ok I fixed it. Apparently frame number was missing (after the time). I used different site to download the subtitles and it worked :)
Yeah, sometimes the subtitle files can be pretty messed up. I try to support the standard format and any common variants, but there's always a new kind of broken file out there, and at some point, it's easier to fix them by hand.
I'm glad you found a solution!
Also, you might be interested in applications like Subtitle Edit, which can convert and edit many kinds of subtitles, and which are useful when preparing to use substudy
.
Working on common variants is cool, but I think you should expand error message. It looks like a runtime error not related to subtitles at first look, but it's a subtitles problem. Maybe something like:
Failed to parse subtitles at path: "path". Details:
error at 2:8: expected....