mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-04 22:37:16 +00:00
Canonical Discogs URLs use www.discogs.com, not discogs.com.
This commit is contained in:
parent
b0d75b6ffd
commit
0dc0770ba2
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
|
|
||||||
// @name Import Discogs releases to MusicBrainz
|
// @name Import Discogs releases to MusicBrainz
|
||||||
// @version 2012-03-28~1
|
// @version 2012-04-22~1
|
||||||
// @namespace http://userscripts.org/users/22504
|
// @namespace http://userscripts.org/users/22504
|
||||||
// @icon http://www.discogs.com/images/discogs130.png
|
// @icon http://www.discogs.com/images/discogs130.png
|
||||||
// @include http://*musicbrainz.org/release/add
|
// @include http://*musicbrainz.org/release/add
|
||||||
|
@ -287,7 +287,7 @@ function insertLink(release) {
|
||||||
mbUI.appendChild(mbContentBlock);
|
mbUI.appendChild(mbContentBlock);
|
||||||
|
|
||||||
// Form parameters
|
// Form parameters
|
||||||
var edit_note = 'Imported from ' + window.location.href.replace(/http:\/\/(www\.|)discogs\.com\/(.*\/|)release\//, 'http://discogs.com/release/');
|
var edit_note = 'Imported from ' + window.location.href.replace(/http:\/\/(www\.|)discogs\.com\/(.*\/|)release\//, 'http://www.discogs.com/release/');
|
||||||
var parameters = MBReleaseImportHelper.buildFormParameters(release, edit_note);
|
var parameters = MBReleaseImportHelper.buildFormParameters(release, edit_note);
|
||||||
|
|
||||||
// Build form
|
// Build form
|
||||||
|
|
Loading…
Add table
Reference in a new issue