mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-12 22:17:06 +00:00
Fix seeding of artist credit MBID and add support for seeding
release-group MBID.
This commit is contained in:
parent
a193e5079f
commit
3f00813732
1 changed files with 4 additions and 1 deletions
|
@ -122,6 +122,9 @@ var MBReleaseImportHelper = (function() {
|
|||
appendParameter(parameters, 'script', release.script);
|
||||
appendParameter(parameters, 'packaging', release.packaging);
|
||||
|
||||
// ReleaseGroup
|
||||
appendParameter(parameters, 'release_group', release.release_group_mbid);
|
||||
|
||||
// Date + country
|
||||
appendParameter(parameters, 'country', release.country);
|
||||
if (!isNaN(release.year) && release.year != 0) { appendParameter(parameters, 'date.year', release.year); };
|
||||
|
@ -190,7 +193,7 @@ var MBReleaseImportHelper = (function() {
|
|||
var ac = artist_credit[i];
|
||||
appendParameter(parameters, paramPrefix+'artist_credit.names.'+i+'.name', ac.credited_name);
|
||||
appendParameter(parameters, paramPrefix+'artist_credit.names.'+i+'.artist.name', ac.artist_name);
|
||||
appendParameter(parameters, paramPrefix+'artist_credit.names.'+i+'.artist.mbid', ac.artist_mbid);
|
||||
appendParameter(parameters, paramPrefix+'artist_credit.names.'+i+'.mbid', ac.mbid);
|
||||
if (typeof ac.joinphrase != 'undefined' && ac.joinphrase != "") {
|
||||
appendParameter(parameters, paramPrefix+'artist_credit.names.'+i+'.join_phrase', ac.joinphrase);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue