From d05af45f651e4caa048c0f1a68965ea17d03a6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Thu, 29 Mar 2012 00:18:21 +0200 Subject: [PATCH] 2011-09-11~3 --- discogs_importer.user.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/discogs_importer.user.js b/discogs_importer.user.js index 2e4a4df..9df9324 100644 --- a/discogs_importer.user.js +++ b/discogs_importer.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Import Discogs releases to MusicBrainz -// @version 2011-09-11_02 +// @version 2011-09-11_03 // @namespace http://userscripts.org/users/22504 // @include http://*musicbrainz.org/release/add // @include http://*musicbrainz.org/release/*/add @@ -116,7 +116,8 @@ function parseDiscogsRelease(xmldoc) { var ac = { 'artist_name': $artist.find("name").text().replace(/ \(\d+\)$/, ""), 'credited_name': ($artist.find("anv").text() ? $artist.find("anv").text() : $artist.find("name").text().replace(/ \(\d+\)$/, "")), - 'joinphrase': decodeDiscogsJoinphrase($artist.find("join").text()}); + 'joinphrase': decodeDiscogsJoinphrase($artist.find("join").text()) + }; release.artist_credit.push(ac); }); @@ -192,7 +193,8 @@ function parseDiscogsRelease(xmldoc) { var ac = { 'artist_name': $artist.find("name").text().replace(/ \(\d+\)$/, ""), 'credited_name': ($artist.find("anv").text() ? $artist.find("anv").text() : $artist.find("name").text().replace(/ \(\d+\)$/, "")), - 'joinphrase': decodeDiscogsJoinphrase($artist.find("join").text()}); + 'joinphrase': decodeDiscogsJoinphrase($artist.find("join").text()) + }; track.artist_credit.push(ac); });