Discogs: "Single Sided" != "Single"

Fix Discogs import does not properly understand "Single Sided"
https://github.com/murdos/musicbrainz-userscripts/issues/66
This commit is contained in:
Laurent Monin 2015-06-27 09:32:19 +02:00
parent 347ec031cd
commit 3492ec595e

View file

@ -544,7 +544,7 @@ function parseDiscogsRelease(data) {
// Release type
if (desc.match(/Compilation/)) release.secondary_types.push("compilation");
if (desc.match(/^Album/)) release.type = "album";
if (desc.match(/Single/)) release.type = "single";
if (desc.match(/Single(?! Sided)/)) release.type = "single";
if (desc.match(/EP|Mini-Album/)) release.type = "ep";
});
}