mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-17 23:16:56 +00:00
import_functions: set artist mbid for Various Artists and [unknown]
This commit is contained in:
parent
565c776910
commit
4bd4b74c7f
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue