shpotify
shpotify copied to clipboard
playing song or playlist from uri
Awesome utility! Using brew had it working in less than a minute. I saw issue #26 and that is the functionality I was hoping to find.
spotify play list mylist
However, I was thinking I could work around this issue for the time being by manually copying the uri from my playlist and triggering its playback directly with the uri
command. I've noticed Spotify gives you two kinds of uris depending how you copy them from their GUI. I have tried them both:
spotify play uri spotify:user:123785495:playlist:2k7wiwTEE0JlN39pvPlpUT
and
spotify play uri https://open.spotify.com/user/123785495/playlist/1iJoqOMxUxP4IHCqMl2E1N
But neither works for me. I have also tried both style of uris to play a song directly (as opposed to a playlist) without success. Am I using the uri
feature incorrectly?
Thanks, and I don't know. 😅 This is not a feature I use, but will check.
Using spotify play uri <uri>
is working for me:
$ spotify play uri spotify:user:dmofot:playlist:7MB1YsnI5HDNnYbjgW7TKy
Playing Spotify URI: spotify:user:dmofot:playlist:7MB1YsnI5HDNnYbjgW7TKy
I also tried the URI you have above and that also works for me:
$ spotify play uri spotify:user:123785495:playlist:2k7wiwTEE0JlN39pvPlpUT
Playing Spotify URI: spotify:user:123785495:playlist:2k7wiwTEE0JlN39pvPlpUT

Hey, thanks for testing that! I find that odd as I haven't been able to have the same success (screenshot below). What operating system are you on?
@agentfitz: This doesn't work for me on zsh
but works for me on bash
.
🤷♂️
OSX Sierra 10.12.4, iTerm2 Build 3.0.15, GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)

Interesting, just tried switching to bash
and had the same result. Odd.
OSX El Capitan Version: 10.11.5 (15F34)
Hmm, can you check a couple of things?
- Does it work if you quote the
<uri>
, i.e."spotify:user:123785495:playlist:2k7wiwTEE0JlN39pvPlpUT"
? - If you put the
<uri>
directly into the search box in the Spotify app, does that work?
The first one works for me. The second one also works if I paste the <uri>
in and just hit enter.
Using quotes doesn't work (tried that earlier too), pasting into spotify search box does work.
Did you guys manage to reach some sort of conclusion on this?
I just updated to shpotify 2.0 and tried spotify play uri <uri>
and it still works for me. spotify play list <list>
still doesn't return any results, which doesn't surprise me given there is no list
commands in the Spotify.sdef file. That command should probably be removed...
OSX Sierra 10.12.6 iTerm2 Build 3.1.4 GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
For what it's worth, it works on both zsh and bash for me:
