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

Open in spotube From Spotify Web #33

Closed
Mennaruuk opened this issue Mar 17, 2022 · 6 comments
Closed

Open in spotube From Spotify Web #33

Mennaruuk opened this issue Mar 17, 2022 · 6 comments
Labels
deployed This issue has been fixed/implmented and has been released enhancement New feature or request

Comments

@Mennaruuk
Copy link

Is your feature request related to a problem? Please describe.
When I find a Spotify song or playlist on my browser, I can't redirect it to spotube.

Describe the solution you'd like
It would be so cool to have Chrome or Firefox tell me to open in spotube when it detects it's a Spotify song/playlist link.

Describe alternatives you've considered
Go back and play playlist in Spotify.

Additional context
Appreciate your help.

@Mennaruuk Mennaruuk added the enhancement New feature or request label Mar 17, 2022
@KRTirtho
Copy link
Owner

This is simply impossible unless anyone makes an Chrome/Firefox extension to open the track/playlist in Spotube. If you're interested why not create a Browser extension that launches a IPC link of a track/playlist from open.spotify.com

@Mennaruuk
Copy link
Author

Mennaruuk commented Mar 17, 2022

Yeah, I'm currently trying to do that. I found a Tampermonkey script that opens Spotify links in Spotify desktop client. However, what is needed is a URI protocol registered to the program. Spotify has done that already to their client, so when a browser calls spotify:the_link_to_playlist, it opens there. But spotube doesn't have a URI protocol yet.

I followed the instructions on this page about how to register a URI handler. I also changed the URI protocol in the Tampermonkey script from spotify: to spotube:. Unfortunately, the Spotify playlist site kept crashing every time I opened it. So somewhere something is wrong. If anyone who knows about this stuff can help, please jump in!

This is how my Registry looks like:

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\spotube]
@="URL:spotube Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\spotube\DefaultIcon]
@="C:\\Users\\Menna\\AppData\\Local\\Programs\\Spotube\\spotube.exe,1"

[HKEY_CLASSES_ROOT\spotube\shell]

[HKEY_CLASSES_ROOT\spotube\shell\open]

[HKEY_CLASSES_ROOT\spotube\shell\open\command]
@="C:\\Users\\Menna\\AppData\\Local\\Programs\\Spotube\\spotube.exe \"%1\""

And this is an example of what Microsoft suggests to do, the protocol being alert:

HKEY_CLASSES_ROOT
   alert
      (Default) = "URL:Alert Protocol"
      URL Protocol = ""
      DefaultIcon
         (Default) = "alert.exe,1"
      shell
         open
            command
               (Default) = "C:\Program Files\Alert\alert.exe" "%1"

@KRTirtho KRTirtho changed the title Open in spotube Open in spotube From Spotify Web Mar 18, 2022
@papjul
Copy link

papjul commented May 17, 2022

Is it possible to implement it in Android?

In Android, you can specify that some domain names can be open with your app. Is the ID in the URL enough to read the track?

@Megver83
Copy link

Megver83 commented Jul 2, 2022

@KRTirtho this is specially helpful in Android, sometimes my friends share their playlists to me but I cannot open them directly in Spotube.

And regarding the GNU/Linux client, you can register the corresponding URI protocol in the desktop file.

@beatnickgr
Copy link

Tapping a Spotify link from Telegram opens the browser instead.

@KRTirtho
Copy link
Owner

Support added in #950

@KRTirtho KRTirtho moved this to Deployed in Spotube Board Apr 11, 2024
@KRTirtho KRTirtho added the deployed This issue has been fixed/implmented and has been released label Apr 11, 2024
@github-project-automation github-project-automation bot moved this from Deployed to Done in Spotube Board Apr 11, 2024
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Apr 15, 2024
@lorypelli lorypelli mentioned this issue Sep 21, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed This issue has been fixed/implmented and has been released enhancement New feature or request
Projects
Status: Deployed
Development

No branches or pull requests

5 participants