mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 16:15:55 +03:00
[GH-ISSUE #788] Command to save an album with CLI #319
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#319
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 @nacht-falter on GitHub (Apr 16, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/788
Hi,
thank you for freeing me from that cumbersome official Spotify Client!
Is there a way to save an album to the library from the command line (without entering the UI)? Ideally I would like to play an album and if at some point I decide I like it save it to the library.
Thanks!
@OrangeFran commented on GitHub (Apr 18, 2021):
Not yet but it would be pretty easy to implement a
spt playback --save-albumcommand. It's just a call toIoEvent::CurrentUserSavedAlbumAdd(String). If you want to do it yourself, go for it.@nacht-falter commented on GitHub (Apr 19, 2021):
I'd love to but I wouldn't know how, sorry.
@OrangeFran commented on GitHub (Apr 19, 2021):
No worries, maybe I'll find some time this week to do it myself.
@nacht-falter commented on GitHub (Sep 21, 2022):
Hi,
did you ever get around to taking a look at this?
If not, could you point me in the right direction towards implementing it myself? I don't know where to start.
Cheers!
@OrangeFran commented on GitHub (Sep 21, 2022):
Hey, maybe use this as a starting point (used to like a song):
The variable
sis a bool and reflects if the song should be liked (true) or disliked (false).Use something like this to check for the command line flag:
And make sure to enable the flag by adding to
src/cli/clap.rs.Hope this helps.