spot icon indicating copy to clipboard operation
spot copied to clipboard

[Feature Request] Support the Spotify URI scheme

Open bbb651 opened this issue 4 years ago • 2 comments

I think it'll be useful to implement the Spotify URI scheme, it's used on the web player and in discord embeds, and it can be inconvenient to manually look for the song on Spot.

The only crate I found that can register a URI handler is system_uri which is archived and not maintained anymore, I forked it and updated it's dependencies, I'll try publishing it to crates.io, alternatively we can just do it manually in Spot because we don't have to worry about other platforms, we just need to make a desktop file in ~/.local/share/applications/ with the proper information.

According to wikipedia, this is how the Spotify URI scheme is used

spotify:<artist|album|track>:<id> or spotify:search:<text> or spotify:user:<username>:playlist:<id>

example: spotify:track:2jCnn1QPQ3E8ExtLe6INsx

bbb651 avatar Sep 23 '21 08:09 bbb651

Hi! This is indeed something that would be very handy :) I guess we only need to handle the http(s) scheme (users are unlikely to encounter a Spotify URI in the wild)

xou816 avatar Sep 23 '21 12:09 xou816

I've only seen the URI used (in the web player if you right click and select open in desktop app, it redirects you to a spotify:... link), afaik the offical client doesn't handle http(s).

I'll try working on this, I'm still learning GTK and I'm still not super comfortable in Rust so I'll see how far I can get.

bbb651 avatar Sep 23 '21 13:09 bbb651