From 3f00813732cdf077739b02b5c1d1c9b985c8db8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Sun, 7 Jun 2015 21:48:00 +0200 Subject: [PATCH] Fix seeding of artist credit MBID and add support for seeding release-group MBID. --- lib/import_functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/import_functions.js b/lib/import_functions.js index 0b4b68e..5c24170 100644 --- a/lib/import_functions.js +++ b/lib/import_functions.js @@ -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); }