shpotify
shpotify copied to clipboard
status command should also list current playlist (if available)
Great tool! I hate having to use the GUI and you make it easier not to. Having this would make it more useful.
Would love to also see implementation for saving a song/artist/playlist as well.
Thanks for the great work!
This is a good idea. Please submit code if you know how to, and if you don't, please try to better describe how you'd imagine this feature so that someone else interested can try to implement it. 👍
Unfortunately, there is no applescript for current playlist.
I just did some more looking around, and I can try to add something to the spotify play list command to store the playlist and print out the playlist if it is set. However, it may require changing the behavior of the play list command or perhaps even introduce a new dependency so I can parse out a JSON item from the playlist search and pull out both the playlist name and URI.
Please don't go down that route (any more deoendencies) as I likely won't accept your changes.
I figured as much. I'll see if anything can be done without dependencies, but it might involve changing the behavior from a random playlist selection taking the first one. Would that be okay?
Like I said earlier, I'm away from my computer. I am on vacation and trying to be away from GitHub to get some peace and quiet. Will answer in about a week. 😊
I would suggest not doing any storing of stuff from spotify play list since if I understand it correctly it would work if I selected a playlist in the GUI, then controlled it from the CLI. I experience this use-case a lot as I queue up a playlist in the app, but then skip and control playback in Atom using this.
@tpritc, the only other thing I can think of is another API call. I'll try to put that together to see what it looks like. @hnarayanan enjoy your vacation. I'll have some PR's ready when you get back. :)
Hi Guys, coming a bit late to the shpotify party, but nevertheless thankful for the script. I’ve added to my fork the possibility to list the contents of a playlist based on the uri like this: spotify list uri
I deliberately used list to list the contents instead of using the already play or status, as neither of them sounded correct. I’ve made a global function of getAccessToken and to get the list I’ve used an API call to Spotify. The output (json) is parsed with a tool call jq. I’ve found no other way to parse it properly.
Let me know what you think :)
(added pull request #131 )