mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14: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==
|
||||
|
||||
// @name Import Discogs releases to MusicBrainz
|
||||
// @version 2012-03-28~1
|
||||
// @version 2012-04-22~1
|
||||
// @namespace http://userscripts.org/users/22504
|
||||
// @icon http://www.discogs.com/images/discogs130.png
|
||||
// @include http://*musicbrainz.org/release/add
|
||||
|
@ -287,7 +287,7 @@ function insertLink(release) {
|
|||
mbUI.appendChild(mbContentBlock);
|
||||
|
||||
// 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);
|
||||
|
||||
// Build form
|
||||
|
|
Loading…
Reference in a new issue