mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
2012-02-14
This commit is contained in:
parent
e235e4a291
commit
ee1c613ece
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
|
||||
// @name Import Discogs releases to MusicBrainz
|
||||
// @version 2012-01-18_01
|
||||
// @version 2012-02-14_01
|
||||
// @namespace http://userscripts.org/users/22504
|
||||
// @icon http://www.discogs.com/images/discogs130.png
|
||||
// @include http://*musicbrainz.org/release/add
|
||||
|
@ -22,6 +22,8 @@ try{function updateCheck(forced){if ((forced) || (parseInt(GM_getValue('SUC_last
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (!unsafeWindow) unsafeWindow = window;
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
// On Musicbrainz website
|
||||
|
@ -172,6 +174,8 @@ function parseDiscogsRelease(data) {
|
|||
$.each(discogsRelease.formats[0].descriptions, function(index, desc) {
|
||||
// Release format: special handling of vinyl 7", 10" and 12"
|
||||
if (desc.match(/7"|10"|12"/)) release_format = MediaTypes[desc];
|
||||
// Release format: special handling of Vinyl, LP == 12" (http://www.discogs.com/help/submission-guidelines-release-format.html#LP)
|
||||
if (discogsRelease.formats[0].name == "Vinyl" && desc == "LP") release_format = '12" Vinyl';
|
||||
// Release status
|
||||
if (desc.match(/Promo|Smplr/)) release.status = "promotion";
|
||||
// Release type
|
||||
|
|
Loading…
Reference in a new issue