joshuathompson / baton Goto Github PK
View Code? Open in Web Editor NEWCLI to manage Spotify playback
License: MIT License
CLI to manage Spotify playback
License: MIT License
Thank you for Baton, loving it so far. I have only one annoyance so far, and I wanted to get your feedback.
My listening is oriented around albums. Which is why I appreciate being able to do a "baton search artist NAME", select an artist, and then using the right arrow, go ahead and select a specific album, or even a song. However, after hitting play and exiting the view, I don't have a way to return to it. I can hit the up arrow and repeat the original search, but that requires me to start again from the artist and the album. The same problem exists when playing a song from a playlist using "baton me playlists".
Would it make sense to implement a command that shows the last screen again? Something like "baton current" or "baton list"? I'd be happy to send a pull request if you provide details on how you'd like it to work. I am guessing that the main problem is figuring out how to cleanly save state as the user moves through the tables.
Reddit user /u/StormsMessenger would like the ability to add/remove songs to playlists
Hi!
Very nice work but I have a problem using search function.
Every search gets error invalid argument.
For example:
./baton search artist Iron Maiden
2018/02/23 20:56:43 invalid argument
Other functions like next, repeat, status and devices are working.
Any search command shows the results just fine, but when I choose one, nothing is played and I get a log message: "404 Not Found".
[ ~ ] baton search artist foo # Press enter to choose an artist from the TUI
2018/06/24 12:27:28 404 Not Found
Using baton share
outputs the URI and the API urls, where it should replace or include some "shareable" URL.
Current output:
baton share
URI: spotify:track:2OBgZrayUVupeEtt1eu2V4
URL: https://api.spotify.com/v1/tracks/2OBgZrayUVupeEtt1eu2V4
It should include some URL that I could send to someone, e.g.: https://open.spotify.com/track/2OBgZrayUVupeEtt1eu2V4
/u/IrishLadd on Reddit requested the ability to see what song is currently playing in the TUI view.
Hi!
first of all thank you for this amazing tool :)
It would be nice if it were possible to like the currently playing song, as there is an endpoint for it : https://developer.spotify.com/documentation/web-api/reference/library/save-tracks-user/
keep up with the good work!
This tool is awesome, ideally I just miss the ability to start a radio from the current song. Unless it's already supported through other mechanisms ?
Hello @joshuathompson,
I made https://github.com/jingweno/spotctl before I discovered your project. Looks like we have quite a bit of overlap. Would you be interested in joining force? Feel free to ping me.
馃嵒
$ ./baton search track foo bar
Error: accepts 1 arg(s), received 2
Usage:
baton search track "track name" [flags]
Flags:
-h, --help help for track
I'm not sure what cobra.ExactArgs(1)
does exactly, but correct behaviour is definitely just combining all the words into a single argument string to the search function.
edit: of course there's the option of quoting the string, but that's not too user friendly imo.
$ md5sum baton*
5480eaa78ddded37a15711f45606e8a3 baton-0.1.5-darwin-amd64
5480eaa78ddded37a15711f45606e8a3 baton-0.1.5-linux-amd64
5480eaa78ddded37a15711f45606e8a3 baton-0.1.5-windows-amd64.exe
and
$ file baton-0.1.5-linux-amd64
baton-0.1.5-linux-amd64: Mach-O 64-bit x86_64 executable
$ ./baton status
Track: S茅 Lest
Artist: Sigur R贸s
Album: Takk
Time Elapsed: 0:09 - 8:40
$ ./baton search artist balance
# Choose the first option "Balance And Composure"
Now playing 'S茅 Lest' by Sigur R贸s from the album Takk
$ ./baton status
Track: Tiny Raindrop
Artist: Balance And Composure
Album: The Things We Think We're Missing
Time Elapsed: 0:04 - 3:33
The old asciicast recording was archived (https://asciinema.org/a/RgR4iT9wz2J3bjCx0p7Wj9Rnn) and should either restore it or get a new terminal sample that shows off some features.
I have set up a raspberry pi with raspotify and it is recognized by baton devices
.
But baton transfer <id>
does not do anything.
Would really like to have there be a command to run like baton console that would keep it persistent so that I could have easy keyboard shortcuts to change my music. Not sure how feasible that would be but it's a feature I would really enjoy.
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.