brianstrauch / spotify-cli Goto Github PK
View Code? Open in Web Editor NEWSpotify for the terminal
License: Apache License 2.0
Spotify for the terminal
License: Apache License 2.0
Concerns spotify version 1.9.0
After what seems a successful login, I get an error when I try to execute a command like status. I tried it both in Windows and in WSL2. Same result.
Windows 10
I run spotify login, the browser opens on Spotify login page for Spotify CLI, I login and get a success page in the browser. The cli does not seem to be happy:
spotify login
Error: You are not logged in: Run "spotify login"
Usage:
spotify login [flags]
Flags:
-h, --help help for login
Any suggestions?
I can see the status of my account, the current playing song and so on. But none of the commands actually work. The play pause commands don't have any effect on the Spotify app. Pausing does show "Paused ..." in command prompt but spotify doesn't pause.
It seems that the only way to accomplish this is to hit the following endpoint and play songs individually from the returned list. Any other ideas?
https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-users-saved-tracks
Add a --live
(or --watch
?) flag to show a live version of the status command
When I try to play music I get the error:
Error: Player command failed: No active device found
Probably because I have more than one device connected to Spotify.
Searching on google I've found: spotify/web-api#1325 which suggest to make the request with
https://api.spotify.com/v1/me/player/play?device_id="+this._device_id
I've been looking on the source code to add this option, but I have no experience with cobra and I also don't know where the request is made to test if this change could work. Could you tell me where I can change it? So I can report if that change works for me (and hope for other users with more than one device)
@u0_a316@localhost:~/.local/bin$ ./spotify login
Error: GET https://api.github.com/repos/brianstrauch/spotify-cli/releases: 401 Bad credentials []
Usage:
How to install this command line tool on Windows? Sorry if this is a rookie question, command line rookie here.
Please add auto completion for the cli ๐
Whatever command I use, it pulls up the Spotify for windows application instead of spotify-cli.
(b)ack
(n)ext
(p)lay / pause
(s)tatus
A commit with a new version number in main.go
should trigger a release.
Strings wrap before row hits the end of the terminal.
On spotify status
, show details for the current song:
$ spotify status
Safe and Sound
Capital Cities
1:23 [===== ] 3:12
Hey! I don't know if I am repeating or not, but is it should be here?
spotify-cli/internal/common.go
Line 11 in 8d5d257
Hello @brianstrauch. I downloaded the amd version of the spotify-cli from the link you provided in the README section. However, there is no further instruction as to how to install it on my system (macOS 12.0.1). Would it be possible to have detailed instructions on the installation?
Thank you very much!
Update the CLI automatically by downloading the latest binary from GitHub
I mean, I am not quite sure if I am doing right but no matter what I do (after login) it just says "Error: EOF". So, not working for me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.