Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Invalid Syntax when downloading subtitle files #32

Open
guiltykeyboard opened this issue May 16, 2019 · 1 comment
Open

Invalid Syntax when downloading subtitle files #32

guiltykeyboard opened this issue May 16, 2019 · 1 comment

Comments

@guiltykeyboard
Copy link

When downloading subtitles, i've been getting strconv.ParseInt: parsing "numbers here": invalid syntax.

For example, strconv.ParseInt parsing "17.11": invalid syntax

@turtletowerz
Copy link

turtletowerz commented Jun 23, 2019

I seem to be having the same issue with specific episodes. This doesn't happen with all episodes in a season.

Here's an example of what it looks like in the CLI:
2019-06-22_23-24-21

Upon further testing, it seems the root of the cause is an error from the formatSubtitles function in crunchyroll/subtitle.go

Upon even further testing, it appears the issue has to do with the Angle integer in the Style struct. The angle can be a double, which causes ParseInt to error. I saved the XML and upon further examination the Angle double matches up with the double that the error message displays

2019-08-09_22-48-35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants