Site
Home / Forum / Developers / Problem with MusicBrainz Album/Track ID redirects

Problem with MusicBrainz Album/Track ID redirects


Posted: 25 Jan 2021 13:53
Beeman
Posts: 3
Joined: 2020-07-17

I just noticed that an album MusicBrainz ID was not being found by TheAudioDB. I tracked it down to an 'old' ID being stored in TheAudioDB that when clicked gets redirected by MusicBrainz to the new ID. This means searches using music tagged with the new ID won't be found.

To demonstrate I recreated "Arcade Fire - The Suburbs" album here:- https://www.theaudiodb.com/album/2358204
The old one with the MusicBrainz redirect is found here :- https://www.theaudiodb.com/album/2113908

Are you able to run through all the MusicBrainz album ID's in the database checking if they get redirected and if so refreshing the info to update the Album (and track) ID's. You would probably need to add an extra db field for the old ID's so it can be keyed off either one if people have them stored in tags.

I haven't checked how widespread this is, but it came up on the very first album I tested having not used TADB for six months.


Posted: 25 Jan 2021 14:11
zag
Posts: 224
Joined: 2020-07-14

Yes this is a known issues when MusicBrainz merges or deletes a release.

I don't think I can fix it with a script, but you did the right thing and just add the new album and we can delete the old one. It's not massively widespread but does come up every so often.

Posted: 25 Jan 2021 17:15
Beeman
Posts: 3
Joined: 2020-07-17

OK I guess I was unlucky that random test choice hit it.

Would a script that did a request on all the MusicBrainz album links that returned a 302 redirect and then used the redirect link to update the existing link be practical? Though an (old link, new link) lookup table might be handy to maintain backward compatibility.

Alternatively could a manually clicked "Refresh" MusicBrainz button make it easier to merge back in new data for albums/tracks when this is discovered. Or even just make the existing MusicBrainz button check if it is being redirected clientside and send back a notification if so.

Posted: 04 Feb 2021 20:51
zag
Posts: 224
Joined: 2020-07-14

Yes its rare for albums to change MBID but it does happen. Just report it and I can re-import.


Showing 0 to 4 (Total: 4)