Registering a bot to canonicalize old Tidal URLs

I’m planning to use some code that I wrote to rewrite old Tidal URLs of the forms https://listen.tidal.com/artist/123 and https://tidal.com/browse/artist/123 (plus album and track variants) to the canonical https://tidal.com/artist/123 form that @yvanzo instituted as part of MBS-10621. I’d like to do this so that I can look up an artist or album MBID via a single API call instead of needing to make multiple calls with all the possible URL forms.

Could a developer please set the derat_bot user’s type to “bot” as described in https://musicbrainz.org/doc/Code_of_Conduct/Bots? I’ve tried emailing the support address and asking on #metabrainz, but I haven’t heard back from anyone. Thanks!

1 Like

Sorry but it doesn’t seem that we received any mail for registering your bot; @reosarevok will look into it.
Did you run it on a test server? (test.musicbrainz.org can be used for that.)
Have you checked [MBBE-63] Mark TIDAL Store URLs as ended - MetaBrainz JIRA?

Yep, I did. :slight_smile:

#89612574 and #89612573 are some edits that I created (the derat_test user doesn’t look like it’s been replicated to the test server, so I used my normal account there).

I think that ticket is only referring to links to the Tidal Download Store, e.g. https://store.tidal.com/album/34981731, which redirect to a help page now. Links to Tidal’s streaming service still work and are still being added to the database.

2 Likes

I recommend you to create and self-assign your own MBBE ticket and to refer to it in edit notes as follow-up.

1 Like

Thanks for the suggestion. I’ve filed MBBE-71 to track this. After I’ve entered a few example edits into the prod database, I’ll link to them here so that others can take a look.

1 Like

The bot has created its first five edits, visible here. They look correct to me, but please let me know if you feel otherwise. :slight_smile:

Although the preferred relationship type for Tidal links is “streaming page” (which is also the only type allowed when adding new links) I still keep seeing some that are mistakenly set to “stream for free” instead.
https://musicbrainz.org/edit/115055982

Much like the link types aforementioned by OP (those including listen or browse within the URL) that needed to be canonicalized, these were all added before Tidal was whitelisted for external links on MB and a standard was set. You can spot them marked with red from the editing pages of the respective MB entities.
Perhaps a similar bot can be run to find and change all these remnants from “stream for free” to “streaming page”.

Agreed – it sounds like Tidal might’ve quietly turned off free plans last year.

My bot probably isn’t a good match for fixing these, unfortunately. There are more than 100k tidal.com URLs in the database. I don’t have a full database replica, so I don’t think I can easily check which of those have incorrect relationships without querying each of them via the API.

It’s probably best to file a new ticket in the MBBE project at tickets.metabrainz.org to see if someone with a database can run some queries to get a list of the URLs that need to be updated.

1 Like