mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 03:42:27 +00:00
2011-09-11~3
This commit is contained in:
parent
e71561eade
commit
d05af45f65
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue