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

Fix use of undefined release.discs[discindex] #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antlarr
Copy link

@antlarr antlarr commented Apr 22, 2020

Opening https://www.discogs.com/Ryuichi-Sakamoto-Year-Book-1985-1989/release/11652104
gives a problem because undefined (release.discs[discindex]) doesn't have
a format member in line 721
release.discs[discindex].format.match(/(Vinyl|Cassette)/) ...

This fixes the problem (it leaves the medium empty and stores its tracks
in the previous medium, but at least it doesn't break the script).

Opening https://www.discogs.com/Ryuichi-Sakamoto-Year-Book-1985-1989/release/11652104
gives a problem because undefined (release.discs[discindex]) doesn't have
a format member in line 721
`release.discs[discindex].format.match(/(Vinyl|Cassette)/) ...`

This fixes the problem (it leaves the medium empty and stores its tracks
in the previous medium, but at least it doesn't break the script).
@antlarr
Copy link
Author

antlarr commented Apr 22, 2020

This fixes #158

@murdos murdos self-requested a review August 25, 2021 02:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants