-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add Shuffle & repeat to startup configuration file? #440
Comments
A follow up question, currently there is a cli commands for toggling shuffle and repeat. Can you add discrete On and Off commands? So when I send the on/off command I know exactly what state it is in. Thanks |
After experimenting with the repeat & shuffle commands I have some observations. After I set Spotify player repeat to "context" it will get reset to off if Spotify player is restarted. However, if a new playlist is started the current repeat value is remembered. It would be good to have default settings in the app.toml file. With regards to the shuffle command, it never gets remembered. It will always revert back to false on app restart as well as playing a new playlist (different from the repeat command). It would be good to have default settings in the app.toml file. The current (non elegant) work around is start a playlist and toggle the shuffle. I have built a script that starts the playlist, sleep 5 seconds to give the playlist time to load then toggle the shuffle to True. I don't know if these are Spotify limitations or Spotify_player bugs. Please let me know what you think. |
Yes, should be easy to add one, but I will not be actively working on this project next few weeks. Open to PRs though. |
Great. I look forward to the feature addition. |
I know this as well and it's a limitation of the third-party library used for streaming (librespot-org/librespot#19). However, shuffle should be the similar to repeat when playing a new playlist as I've implemented a patch in: spotify-player/spotify_player/src/client/mod.rs Lines 196 to 198 in b3c0592
Not sure if that's because you control the player using CLI. What's your setup? |
I built and run Spotify player on a macmini 2012 Ubuntu 22.04. I am using your cli commands to control everything. Is that what you are asking? |
Does it run as UI or daemon?
Do you run CLI commands in the same machine as the daemon? |
I followed the instructions to make my own binary. The binary is either run directly from terminal (testing) to bring up the gui or I have Spotify player launched at startup. Since you brought it up I wanted to ask you a related question. If I launch spotify player from terminal it opens the gui in that terminal window. If I launch it from startup I don't get a terminal gui window. Am I doing something incorrectly? I a not running a daemon service. |
Not too familiar with this startup process, maybe you need to initiate the app with a terminal as kitty --class floating spotify_player |
If you run the CLI in the same machine with the app/GUI, the shuffle state should be correct upon starting a new playback |
Everything is run one the same machine. Anytime I run a cli command to play a playlist the shuffle gets reset to false. |
Is it possible to set Shuffle and Repeat (others?) options in "app.toml" conf file?
I would like to set them both to True on start up without sending cli commands every time the Spotify player app restarts.
The text was updated successfully, but these errors were encountered: