hnarayanan / shpotify

A command-line interface to Spotify.
https://harishnarayanan.org/projects/
2.02k stars 153 forks source link

Spotify no longer surfaces their spotify URI Link #154

Open reduxdj opened 3 years ago

reduxdj commented 3 years ago

No Longer:

Screen Shot 2021-10-27 at 7 07 24 AM

Now:

Screen Shot 2021-10-27 at 7 05 29 AM
willhaslett commented 3 years ago

@reduxdj Does this break anything? This code appears to still work:

uri=`osascript -e 'tell application "Spotify" to spotify url of current track'`;
remove='spotify:track:'
url=${uri#$remove}
url="https://open.spotify.com/track/$url"
davidem commented 2 years ago

No, api calls and applescript still provide and handle uri's, fortunately 😁

davidem commented 2 years ago

By the way: I just found out that uri's can still be displayed in the gui, by pressing alt/ctrl.

image

As mentioned here: https://community.spotify.com/t5/FAQs/What-s-a-Spotify-URI/ta-p/919201

🤓

hnarayanan commented 2 years ago

Detective work paying off!