import_functions: set artist mbid for Various Artists and [unknown]

This commit is contained in:
Laurent Monin 2015-06-15 17:23:24 +02:00
parent 565c776910
commit 4bd4b74c7f

View file

@ -250,7 +250,14 @@ var MBReleaseImportHelper = (function() {
});
}
});
return credits;
return credits.map(function (item) {
if (item.artist_name == '[unknown]') {
item.mbid = '125ec42a-7229-4250-afc5-e057484327fe';
} else if (item.artist_name == 'Various Artists') {
item.mbid = '89ad4ac3-39f7-470e-963a-56509c546377';
}
return item;
});
}
// Try to guess release type using number of tracks, title and total duration (in millisecs)