Issue Details (XML | Word | Printable)

Key: MBS-4744
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Nicolás Tamargo
Reporter: T Dilation
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Recognise Spotify URLs

Created: 19/May/12 11:35 PM   Updated: 18/Apr/13 01:19 PM   Resolved: 14/Jun/12 11:13 AM
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: Bug fixes, 2012-06-25


 Description  « Hide

In much the same that pasting a Wikipedia or Amazon URL will cause some javascript-type-magic to take place that auto-selects the relevant AR and clean up the URL, I'd like this to happen with Spotify URLs (and maybe their URIs) and the "Can be streamed for free" AR.

Track URLs look like:
http://open.spotify.com/track/7gwRSZ0EmGWa697ZrE58GA

Album URLs look like:
http://open.spotify.com/album/1FpzNqDbugk77xUj0qOrtQ

Artist URLs look like:
http://open.spotify.com/artist/293zczrfYafIItmnmM3coR

Spotify also has URIs. These look like spotify:track:7gwRSZ0EmGWa697ZrE58GA and similarly for albums and artists.



Sort Order: Ascending order - Click to sort in descending order
Nicolás Tamargo added a comment - 26/May/12 12:38 AM

Does this need any cleanup, or just auto-select?


T Dilation added a comment - 26/May/12 11:03 AM

I was originally thinking just auto-select. But I have found that the URLs from the the embed code that look like https://embed.spotify.com/?uri=spotify:track:7gwRSZ0EmGWa697ZrE58GA that could be cleaned up to the open.spotify.com URLs. I mean, Youtube URLs from their embed code (e.g. http://www.youtube.com/embed/UafNKG3gO74) appear to get cleaned.



Nicolás Tamargo added a comment - 18/Apr/13 01:19 PM

Aaand I'm an imbecile and I just saw this was added only for recordings. Fixing soon together with MBS-4217