musicbrainz-userscripts
musicbrainz-userscripts copied to clipboard
Fix use of undefined release.discs[discindex]
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).
This fixes #158