-
Notifications
You must be signed in to change notification settings - Fork 16
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
List Albums, Tracks, Artists; and set Playback Device #13
base: master
Are you sure you want to change the base?
Conversation
NOTE: |
Removing the "deviceNameFlag" portions from the existing code base seemed to fix the issue. |
If a search result fails the program seg faults. Would be nicer to have an error message. I thought something was really broken for a while. |
The only relevant changes are to main.go and ctl.go
I added functions to dump data from a user's saved library. I wanted this for myself so that I could use it with FZF to search my saved music; but it will surely be useful for others. It basically dumps a cache for each one.
you may now :
'spotctl albums'
'spotctl artists'
'spotctl tracks'
Extensions: It would be nice to utilize this functionality to have "search and play" prefer a user's saved lists by default, and then fall back to searching the entire Spotify database. This would prevent searching for a song that you like and winding up with some other random version of it or one with a similar name.
I added the ability to change playback device using 'setdevice' which takes the device name as input. (use 'spotctl devices' to find device name and use that as input)
'spotctl setdevice "Brian's iPhone"'
ps. This is my first time writing "go lang", I kind of just figured out enough to make this stuff work. There are surely small fixes to be made.