Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to open spotify: and https://open.spotify.com/ links #560

Open
jstarpl opened this issue Nov 26, 2024 · 2 comments
Open

Ability to open spotify: and https://open.spotify.com/ links #560

jstarpl opened this issue Nov 26, 2024 · 2 comments

Comments

@jstarpl
Copy link
Contributor

jstarpl commented Nov 26, 2024

Is your feature request related to a problem? Please describe.
I would really like to open spotify: and https://open.spotify.com/ links in Psst instead of having to find the track/playlist/album/artist based on title.

Describe the solution you'd like
I think one solution might be to use a named local socket, using something like https://docs.rs/interprocess . The first running Psst instance would set up a socket and listen for Protobuf, JSON-RPC or some other simple protocol, for commands on what to do. Another Psst instance, with a specific command line - say --url spotify:playlist:xxx would connect to that socket, send a command and terminate.

Describe alternatives you've considered
Another option could be to have the Psst window be a drop-target for text, RegExp match on the text being dropped, and recognize a https://open.spotify.com/ text, parse it, and show/play whatever the link directs to.

Additional context
Having a named socket would open up the possibility of other integrations with Psst, like Stream Decks and such. I suppose that's already somewhat possible using global media hotkeys, but those are always at the mercy of the OS.

@jacksongoode
Copy link
Collaborator

This sounds like a great initiative, I've wanted to handle these links as well but it does require a listener for opening the applications. I think pasting Spotify links into the search bar does direct to the proper album/song.

@Pogodaanton
Copy link
Contributor

Potential duplicate of #159 ?

open.spotify.com links do indeed work in the search bar for the time being. I regularly open songs/albums in Psst by pasting links shared to me into the search bar. However, playlist URLs do not work (#565)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants