mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-14 04:12:28 +00:00
discogs_importer: also match artist simple alias
This commit is contained in:
parent
c1c1f1682e
commit
c5ad8604bf
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ var link_infos = {};
|
||||||
// Parse discogs url to extract info, returns a key and set link_infos for this key
|
// Parse discogs url to extract info, returns a key and set link_infos for this key
|
||||||
// the key is in the form discogs_type/discogs_id
|
// the key is in the form discogs_type/discogs_id
|
||||||
function getDiscogsLinkKey(url) {
|
function getDiscogsLinkKey(url) {
|
||||||
var re = /^http:\/\/(?:www|api)\.discogs\.com\/(?:(?:(?!sell).+|sell.+)\/)?(master|release|artist|label)s?\/(\d+)(?:[^\?#]*)(?:\?noanv=1)?$/i;
|
var re = /^http:\/\/(?:www|api)\.discogs\.com\/(?:(?:(?!sell).+|sell.+)\/)?(master|release|artist|label)s?\/(\d+)(?:[^\?#]*)(?:\?noanv=1|\?anv=[^=]+)?$/i;
|
||||||
if (m = re.exec(url)) {
|
if (m = re.exec(url)) {
|
||||||
var key = m[1] + '/' + m[2];
|
var key = m[1] + '/' + m[2];
|
||||||
if (!link_infos[key]) {
|
if (!link_infos[key]) {
|
||||||
|
|
Loading…
Reference in a new issue