Skip to content

Comments

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

Open
antlarr wants to merge 1 commit intomurdos:masterfrom
antlarr:fix-sakamoto-yearbook
Open

Fix use of undefined release.discs[discindex]#271
antlarr wants to merge 1 commit intomurdos:masterfrom
antlarr:fix-sakamoto-yearbook

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.

2 participants