murdos / musicbrainz-userscripts

Collection of userscripts for MusicBrainz, by various authors
537 stars 91 forks source link

Bandcamp importer does not work for single release #474

Open rrrnld opened 2 years ago

rrrnld commented 2 years ago

The user script doesn't run if an artist published only a single release. The script doesn't match the URL and won't run. An example: https://totemcherry.bandcamp.com/releases

I fixed this locally by adding the following line:

// @include        /^https?://[^/]+/(?:releases)\/?$/

I'm not sure if this has any unwanted side effects.

liftarn commented 2 years ago

Workaround: Click on one of the track and then "Buy the Full Digital Album" and it would lead you to https://totemcherry.bandcamp.com/album/s-t and the import will work.

atj commented 2 years ago

This is specifically what the "Import Bandcamp releases to MusicBrainz Album Link Helper" userscript is for.

Install it and you will see an "Album page (MB import)" link that will take you to the release:

image