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

playing song or playlist from uri #74

Open
agentfitz opened this issue Apr 27, 2017 · 12 comments
Open

playing song or playlist from uri #74

agentfitz opened this issue Apr 27, 2017 · 12 comments

Comments

@agentfitz
Copy link

agentfitz commented Apr 27, 2017

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?

@hnarayanan
Copy link
Owner

Thanks, and I don't know. 😅 This is not a feature I use, but will check.

@dmofot
Copy link
Collaborator

dmofot commented Apr 27, 2017

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

screen shot 2017-04-27 at 10 55 24 am

@agentfitz
Copy link
Author

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?

image

@hnarayanan
Copy link
Owner

@agentfitz: This doesn't work for me on zsh but works for me on bash.

🤷‍♂️

@dmofot
Copy link
Collaborator

dmofot commented Apr 27, 2017

OSX Sierra 10.12.4, iTerm2 Build 3.0.15, GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)

@hnarayanan
Copy link
Owner

screen shot 2017-04-27 at 4 07 31 pm

@agentfitz
Copy link
Author

Interesting, just tried switching to bash and had the same result. Odd.

OSX El Capitan
Version: 10.11.5 (15F34)

image

@dmofot
Copy link
Collaborator

dmofot commented Apr 27, 2017

Hmm, can you check a couple of things?

  1. Does it work if you quote the <uri>, i.e. "spotify:user:123785495:playlist:2k7wiwTEE0JlN39pvPlpUT"?
  2. If you put the <uri> directly into the search box in the Spotify app, does that work?

screen shot 2017-04-27 at 11 25 33 am

The first one works for me. The second one also works if I paste the <uri> in and just hit enter.

@agentfitz
Copy link
Author

Using quotes doesn't work (tried that earlier too), pasting into spotify search box does work.

image

image

@hnarayanan
Copy link
Owner

Did you guys manage to reach some sort of conclusion on this?

@dmofot
Copy link
Collaborator

dmofot commented Nov 5, 2017

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)

screen shot 2017-11-05 at 11 55 12 am

@dkniffin
Copy link
Contributor

For what it's worth, it works on both zsh and bash for me:

screen shot 2018-04-29 at 8 23 06 pm

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

No branches or pull requests

4 participants