Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI command to add tracks to a playlist #447

Open
BenGale93 opened this issue May 7, 2024 · 2 comments
Open

CLI command to add tracks to a playlist #447

BenGale93 opened this issue May 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@BenGale93
Copy link

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: b7bfa96

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.

@BenGale93 BenGale93 added the enhancement New feature or request label May 7, 2024
@BenGale93
Copy link
Author

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

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

@Sylvexn
Copy link

Sylvexn commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants