mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[GH-ISSUE #429] Provide a cli arg based interface #180
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @clearnote01 on GitHub (May 3, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/429
I want to trigger commands that goes through spotify-tui but doesn't open the UI. For starters support for search/play/pause through command line would be really good to have.
spt -s --search "a man of wire" // returns top n results
spt -p --play "song name" // based on closest match, start playing this song
spt -t --toggle // toggle play pause
@Rigellute commented on GitHub (May 4, 2020):
Could be an interesting addition 👍 , will require some architectural changes but is doable
@dvdmuckle commented on GitHub (May 17, 2020):
It would also be great to have something like
spt --statusto show the currently playing song.As an aside, there are several tools that allow a CLI arg based interface for Spotify, but they're very fragmented and aren't all mutliplatform, and generally control Spotify in different ways (DBUS/MPRIS for Linux or oascript for Mac) as opposed to interfacing with the Spotify API.
@Dragonsong3k commented on GitHub (Jul 19, 2020):
Launching a playlist in shuffle mode would be great!
spt -p "some playlist name" -s ( --shuffle)
@dann-merlin commented on GitHub (Aug 19, 2020):
I think that sounds more like a separate program. Something like this script referenced by spotifyd's README, but more powerful.
@OrangeFran commented on GitHub (Oct 30, 2020):
I picked this up yesterday. Expect a demo this evening :)
@OrangeFran commented on GitHub (Oct 30, 2020):
Never used imgur, I hope it works: here.
@OrangeFran commented on GitHub (Oct 30, 2020):
I actually did not have to change anything internally. Currently I'm not really happy with the cli.rs file, it seems so unordered. I have to look into that. If you want to try it out, you can use the cli branch on my fork.
@OrangeFran commented on GitHub (Oct 31, 2020):
I did some huge changes to the cli:
There are three main subcommands:
playto play a song,playbackto interact with the playback andqueryto list and search categories. One of my favourite things is the fact that you can format almost any output with a simple string where%a-> artist,%b-> album,%t-> track,%h-> show,%f-> flags (like, shuffle, repeat),%p-> playlist,%d-> current device and%s-> playing status. I really hope it is intuitive enough.@spenat28 commented on GitHub (Jan 21, 2021):
Good work, thanks i have one problem
--like does toggle the like
which makes it dangerous to use without looking into app first - which makes it unusable
Solution is:
--like to always add to liked songs not toggle like - to unlike them and add --dislike
OR:
provide any command to tell if song is already liked
spt pb --is_liked
@OrangeFran commented on GitHub (Jan 21, 2021):
Would just updating the help menu be sufficient? In the tui
stoggles the like as well.Why would you prefer having a
--likeand a--dislikeflag instead of one that just toggles?@spenat28 commented on GitHub (Jan 21, 2021):
Well,
the thing is, you are listening to the song, and you are in terminal. You like it, so you want to add it to liked songs. More often than not, it is already in your liked songs. And you dislike it by accident.
So i would really prefer to have an option to alway like the song instead of a toggle or any way to find out from terminal command if song is already liked and skip the like programmatically.
@OrangeFran commented on GitHub (Jan 22, 2021):
This makes sense. I just remembered that it actually happened to me once. I'm working on it.
@spenat28 commented on GitHub (Jan 22, 2021):
@OrangeFran Thank you!
@clearnote01 commented on GitHub (Jan 23, 2021):
Thanks @OrangeFran, closing this ticket.
This is much more comprehensive than what I expected, really love it!