spotify-cli-mac icon indicating copy to clipboard operation
spotify-cli-mac copied to clipboard

Blue Sky Ideas

Open ersel opened this issue 8 years ago • 13 comments

So we have recently added a recommend feature which was relatively straightforward to implement. We already leverage Spotify API to do search and recommend, what other functionality we can bring to the spotify-cli-mac? Perhaps, we could do more with Genius API access as well. This issue is meant to be a discussion for brainstorming and suggestions for further development. Feel free to share your ideas and suggestions.

Spotify API lib: https://github.com/thelinmichael/spotify-web-api-node

ersel avatar Oct 11 '17 20:10 ersel

Integrate a database to save user preferences and credentials would be great

gabrielsclimaco avatar Oct 12 '17 03:10 gabrielsclimaco

How about getting recommended playlists?

greenmoon55 avatar Oct 15 '17 19:10 greenmoon55

@gabrielsclimaco I think that would be too much hassle. We would need to manage a server and securely store people's credentials etc... I am not interested in building such a solution.

@greenmoon55 We already have a recommend feature which recommends songs, but I would be happy to accept a PR for playlists if you would like to have a go at it.

ersel avatar Oct 28 '17 20:10 ersel

A command to add a song to the spotify queue instead of immediately playing it?

Also, to add to the Genius API, it might be nice to have some way to display where in the lyrics the song is currently.

MasonDMitchell avatar Nov 02 '17 01:11 MasonDMitchell

I'd really like to see the ability to add a song to a queue. I'd also like to get my currrent playlists and select which one to play.

2hands10fingers avatar Nov 19 '17 20:11 2hands10fingers

Thanks for your suggestions @MasonDMitchell and @2hands10fingers .

I think some queue mechanics would be a great addition to the CLI.

I will be writing a short spec on how this could work shortly. I would be happy to accept a PR which addresses that.

ersel avatar Nov 22 '17 01:11 ersel

It seems like we can do the playlist control, but queue is NOT possible at the time of writing.

See discussions here: https://github.com/spotify/web-api/issues/462

I'm leaving this as a note, if Spotify ever expands their API offering we could implement something like the below description:

======= Feature: Add a song to queue instead of playing it immediately. Acceptance Criteria: I see this working as an optional flag that can be used to change how the search command behaves.

For instance, user could run: spotify search artist metallica -- which would start playing metallica as normal.

or they could run: spotify search artist metallica --queue or simply -q for short.

If queue flag is provided, song should be added to user's play queue.

ersel avatar Nov 22 '17 01:11 ersel

@ersel Definitely looked into it further and saw Spotify doesn't have that ability. Whatever makes it easier to add a song to a playlist, I suppose. Thanks for listening. :)

2hands10fingers avatar Nov 22 '17 01:11 2hands10fingers

My pleasure, thanks for your interest @2hands10fingers

I have opened a new issue where I would be happy to accept PRs -- see #22

ersel avatar Nov 22 '17 01:11 ersel

Hello @ersel, I've found your repo while hanging out on GitHub. I was impressed with the idea of controlling terminal with Javascript and I wanted to use and help to improve it immediately.

As @gabrielsclimaco says above, it would be great if the project holds user specifications/played latest music/ques .. etc. As you said, maybe you have difficulty in server management, but it can be handled by keeping in a temporary text file. Thus, both the server and the queue problem can be solved.

serbayAca avatar Jan 21 '19 13:01 serbayAca

Hi @serbayAca , a local file might work actually. What would we use it for though? We can try a minimal feature as a proof of concept.

ersel avatar Jan 21 '19 20:01 ersel

There is an extension for create/read file, which name 'fs' , a nodejs filesystem lib. In fact @ersel, I will work on this weekend to create a poc and send pr. Thanks!

serbayacar avatar Jan 21 '19 21:01 serbayacar

Thanks @serbayAca , let me know if you need any help.

ersel avatar Jan 22 '19 10:01 ersel