MusicPlayerDaemon / mpc

Command-line client for MPD
GNU General Public License v2.0
191 stars 36 forks source link

No option to set consume to one-shot? #111

Closed thistlehog closed 2 months ago

thistlehog commented 3 months ago

Despite being an available option in mpd, i can't seen to find a way to set consume to one-shot? I would assume it would have been set the same way it is for single via passing 'once' instead of 'on' or 'off'? Sorry if I've missed something but this would be very useful to have for writing shell scripts.

Najoj commented 2 months ago

The option is available as consume once:

https://github.com/MusicPlayerDaemon/mpc/blob/07521580de00081eeecc7ff11dcb8be2307ca465/src/main.c#L59

Edit: You can see the implementation here: https://github.com/MusicPlayerDaemon/mpc/blob/07521580de00081eeecc7ff11dcb8be2307ca465/src/command.c#L1094

thistlehog commented 2 months ago

Sorry I was looking as v0.35 tag rather than the Master branch, my mistake