[GH-ISSUE #447] CLI command to add tracks to a playlist #248

Closed
opened 2026-03-02 23:45:54 +03:00 by kerem · 4 comments
Owner

Originally created by @BenGale93 on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/447

Is your feature already implemented in the latest master?

Not that I'm aware of.

Is your feature request related to a problem? Please describe.

I'd like to be able to quickly run a command in the CLI to add the current track to my main playlist. This is to reduce the amount of context switching I need to do when I decide I like the song.

Describe the solution you'd like

I have a very rough solution here: github.com/aome510/spotify-player@b7bfa96dad

Additional context

The solution I have implemented messes with the current API quite badly, specifically passing state into the playlist command. Also, if you run the CLI command whilst the TUI player is open in another terminal the command will just hang and I'm not sure why.

Let me know if you are happy with this feature being included and I'll open a PR we can collaborate on.

Originally created by @BenGale93 on GitHub (May 7, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/447 **Is your feature already implemented in the latest `master`?** Not that I'm aware of. **Is your feature request related to a problem? Please describe.** I'd like to be able to quickly run a command in the CLI to add the current track to my main playlist. This is to reduce the amount of context switching I need to do when I decide I like the song. **Describe the solution you'd like** I have a very rough solution here: https://github.com/aome510/spotify-player/commit/b7bfa96dad2146863bbcbbf5380551c9479b5048 **Additional context** The solution I have implemented messes with the current API quite badly, specifically passing state into the playlist command. Also, if you run the CLI command whilst the TUI player is open in another terminal the command will just hang and I'm not sure why. Let me know if you are happy with this feature being included and I'll open a PR we can collaborate on.
kerem 2026-03-02 23:45:54 +03:00
Author
Owner

@BenGale93 commented on GitHub (May 7, 2024):

Managed to fix the CLI hanging issue by spawning a thread: https://github.com/aome510/spotify-player/compare/master...BenGale93:spotify-player:feat/add-to-playlist

Code is pretty hideous though. Will continue to work on that.

<!-- gh-comment-id:2099293779 --> @BenGale93 commented on GitHub (May 7, 2024): Managed to fix the CLI hanging issue by spawning a thread: https://github.com/aome510/spotify-player/compare/master...BenGale93:spotify-player:feat/add-to-playlist Code is pretty hideous though. Will continue to work on that.
Author
Owner

@sylvexn commented on GitHub (Jul 4, 2024):

Adding to this:
Creating a shortcut for adding to Liked Songs as a hotkey as well as adding to specified playlist would be nice.

<!-- gh-comment-id:2209445790 --> @sylvexn commented on GitHub (Jul 4, 2024): Adding to this: Creating a shortcut for adding to Liked Songs as a hotkey as well as adding to specified playlist would be nice.
Author
Owner

@vtmocanu commented on GitHub (Jan 10, 2025):

I am also interested in this, i would like to be able to add a trackid to an existing playlist.
Thank you for any suggestions

<!-- gh-comment-id:2582915141 --> @vtmocanu commented on GitHub (Jan 10, 2025): I am also interested in this, i would like to be able to add a trackid to an existing playlist. Thank you for any suggestions
Author
Owner

@aome510 commented on GitHub (Sep 6, 2025):

implemented by #776

<!-- gh-comment-id:3260170394 --> @aome510 commented on GitHub (Sep 6, 2025): implemented by #776
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#248
No description provided.