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

Episode title parsing TypeError #58

Open
SubJunk opened this issue May 24, 2021 · 0 comments
Open

Episode title parsing TypeError #58

SubJunk opened this issue May 24, 2021 · 0 comments

Comments

@SubJunk
Copy link
Contributor

SubJunk commented May 24, 2021

On this line https://github.com/vankasteelj/opensubtitles-api/blob/master/lib/identify.js#L44 it does a split() and trim() but doesn't check that there is anything to trim, so it can end up throwing this error, which I noticed in my server logs:

TypeError: Cannot read property 'trim' of undefined
    at LibID.parseResponse (opensubtitles-api/lib/identify.js:44:80)
    at opensubtitles-api/index.js:201:37
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

1 participant