MusicPlayerDaemon / mpc

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

One-shot single mode has been added to MPD but is not available from mpc #71

Closed nicoe closed 2 years ago

nicoe commented 3 years ago

In this commit : https://github.com/MusicPlayerDaemon/MPD/commit/1628d801f9534ab33a711d337cdd691dca2c5710 a one shot single mode has been added to MPD. mpc does not support it.

For the toggling behaviour I guess it could work like this: mpc single toggle onoff ; offon; onceoff

Lovewyrm commented 2 years ago

What does this 'one-shot' do? Is it a sort of preview? Like, maybe one can use it in the search engine window to preview a song, and after that it goes back to the playlist? or something like that?

Because that would be really sweet. I have a lot of music in foreign languages, many I don't even speak so sometimes it would be nice to preview a song before sending it to the main playlist/queue.

liate7 commented 2 years ago

It's a third mode for single; it acts as if single is on once, then turns off single (eg, with repeat off, it pauses at the end of the current track, then pauses; I think it repeats the current track once, then pauses with repeat on, but I'm not sure). I mostly use it to pause at the end of a song instead of right this moment. See the protocol document here.

MaxKellermann commented 2 years ago

36847ba427e939b4d8b28af0bacb11654112acb6