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

Error: Invalid digit found in string #28

Open
archiif opened this issue Jan 31, 2021 · 1 comment
Open

Error: Invalid digit found in string #28

archiif opened this issue Jan 31, 2021 · 1 comment

Comments

@archiif
Copy link

archiif commented Jan 31, 2021

This particular subtitle file caused an "Invalid digit found in string" error, is there any way to fix it?

error: processing subtitle file 'D:\[Asakura]Yuru_Camp_-_08[1080p][F77BB549].srt' failed
caused by: parsing subtitle file 'D:\[Asakura]Yuru_Camp_-_08[1080p][F77BB549].srt' failed
caused by: parsing the subtitle data failed
caused by: parse error at line `5086`
caused by: expected SubRip index line, found '<font size="15">- Do not soak in water.'
caused by: invalid digit found in string

I've included the subtitle file in the attachments:
[Asakura]Yuru_Camp_-_08[1080p][F77BB549].zip

@Granshmeyr
Copy link

Granshmeyr commented Mar 15, 2021

I wanted to respond to this for reference because I had the same issue. Basically this error is caused by a broken subtitle file which therefore cannot be parsed by alass.

I'm not sure why but when I used SubtitleEdit to convert the embedded .ass subtitle track in anime.mkv to an output.srt file, it broke the subtitles. One solution was to convert the embedded .ass subtitle track to output.ass which as expected did not break the syntax of the subtitle file. This is fine because alass supports .ass files. The other solution was to "Unbreak" the broken lines in the output.srt file using SubtitleEdit so the file can at least be parsed.

TL;DR unbreak your broken subtitle file or don't break it in the first place.

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

No branches or pull requests

2 participants