murdos / musicbrainz-userscripts

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

Check for URLs that redirect? E.g. foo.bandcamp.com to foo.com #437

Open redactedscribe opened 2 years ago

redactedscribe commented 2 years ago

For example, when using the Bandcamp import script, the script will not display one of the reddish MusicBrainz release icons if the associated Bandcamp link on MusicBrainz for the release is not identical to the current webpage's URL.

The associated link is valid but it redirects, e.g.: https://foo.bandcamp.com/album/bar -> https://foo.com/album/bar. The only way to get foo.com to display the release icon is to edit the existing foo.bandcamp.com URL in the database, or add foo.com as a new URL, which is essentially a redundant link as far as the database is concerned.

Technically, it would be better to have the foo.bandcamp.com as the only associated Bandcamp URL since this means should the artist/band ever change domain, the underlying foo.bandcamp.com is less likely to be in need of updating, and therefore continue to provide redirection, but now to the new domain.

UltimateRiff commented 1 year ago

had some brief discussion about this feature in the wrong thread in the forums

https://community.metabrainz.org/t/ropdebees-userscripts-support-thread/551947/129?u=ultimateriff