Comments (13)
--Album can be for a future PR.
I won't be able to do this this evening but am happy to look at it this weekend :)
Edit:
For clarity should I not be calling the GetPlaylist (singular) function so that we can have the Params as part of this?
Do we want this as a flag on play or
Playlists?
from spotify-cli.
@Threpio Commented on your PR, but we can add context_uri
to the existing Play()
function.
from spotify-cli.
Is anyone working on the playing of a playlist?
Also curious as to see if there is the possibility of implementing the ability to see the 'Liked songs' playlist (I use that for my spotify usage.
from spotify-cli.
Created an issue for playing the "Liked Songs" playlist!
from spotify-cli.
Was having a look at the codebase whilst I was curious - Not 100% sure I know how to apply it straight up. The generic Spotify libraries don't seem to support referencing a playlist as a command/variable.
If I think I can take it on I will ping and take it - For the meanwhile it might be worth leaving it to someone a bit more experienced.
from spotify-cli.
I didn't realise that you were referencing your own Spotify go api library. Do we need to create the 'play playlist' functionality there and then update the reference/commands here? Sorry for the time
from spotify-cli.
@Threpio No worries, the only change you'd have to implement in the library is searching by playlist/album (which should be relatively simple; just a few lines of code). It currently hardcodes "track" in the search parameters: https://github.com/brianstrauch/spotify/blob/5e406af4be1b0cc7d6fb0cdec0288bb09013d77c/search.go#L13
from spotify-cli.
EDIT: I have realised that this only returns playlists of the user - I assume other playlists being played will be needed aswell.
from spotify-cli.
@Threpio Actually... I think we can just use the existing api.Play()
function! That function takes a variable number of uris
, so you could probably just pass the URI of a playlist into the function and it would play that playlist. We would just have to make a new api.SearchForPlaylist()
function to return a URI for a given playlist name.
from spotify-cli.
the GetPlaylist function returns a Playlist object - Which I believe contains the URI?
playlist.Meta.URI
from spotify-cli.
@Threpio Hmm... I was originally thinking we could give people the option to play any playlist, but being able to play only your own playlists is probably better for UX. In that case, we should call the api.GetPlaylists()
function and do a case-insensitive search for the playlist name the user gave us. If we find it, we can grab the URI
value and pass that to the Play()
function.
So, the good news is that we won't have to implement anything new in the SDK, just the CLI.
from spotify-cli.
Although the --album
flag will need to implement a new Search()
function. I'll split that off into a new issue
from spotify-cli.
from spotify-cli.
Related Issues (20)
- Autocompletion for the cli HOT 1
- EOF HOT 3
- Bump version to 1.8
- spotify status --live
- Show queued song and artist
- Test queue command
- Set up CI with version auto-updating HOT 1
- spotify playlist create
- Stretch tables to width of terminal if needed HOT 1
- Cannot login HOT 2
- ClientID in the code HOT 1
- Login fails HOT 5
- Error: Player command failed: No active device found HOT 5
- Play "Liked Songs" playlist
- spotify queue --album/playlist HOT 2
- Conflict with spotify on Windows10 HOT 3
- Incomplete installation information HOT 1
- How to install this tool on Windows? HOT 1
- Does this require spotify premium to work? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotify-cli.