mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #184] Extend CLI Functionality #94
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#94
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 @cheyngoodman on GitHub (Apr 26, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/184
Is your feature request related to a problem? Please describe.
I'm unable to use some Spotify features without interacting with a UI.
Describe the solution you'd like
I'd like to use CLI commands or bound keybinds to interact with
spotify_playerfeatures.The recent pull request !159 provided some CLI commands.
Can we expand this CLI functionality to include these features?:
Play a specific playlist or song URL:spotify_player playback play --url=<playlist|song>spotify_player playback start --likedspotify_player playback likespotify_player playback like --unlikespotify_player playback like --togglespotify_player playback volume +5spotify_player playback volume -5Describe alternatives you've considered
I've tried
sptfrom https://github.com/Rigellute/spotify-tui which now appears abandoned and missing some features.playerctldoes not have these features. I'm unsure of another CLI utility that gives access to these functions.Additional context
Combined with a daemon functionality mentioned in https://github.com/aome510/spotify-player/issues/42 & https://github.com/aome510/spotify-player/issues/135, these commands can help add window manager integration and GUI-less use of Spotify.
Unrelated, I've tried to build the latest change and test thespotify_player playbackcommand but I'm gettingerror: unexpected argument 'playback' found. If possible, I'd like to help extend theplaybacksubcommand but I'm new to rust and running into issues accessing theplaybackcommand.Thanks for your work on
spotify-player, I appreciate the product and your support.@aome510 commented on GitHub (Apr 26, 2023):
Based on the error, I'm assuming you ran
cargo buildthenspotify_player playback ....cargo buildbuilds a binary in thetarget/debug/folder. So instead, you should run./target/debug/spotify_player playback .... You can also usecargo runwhich is the command combining building and running the application:Note:
cargo run|buildruns/builds the application in debug mode so the performance may not be good. You can run/build the app in a release mode for better performance (with slower build time):