ArturSierzant / OMPD

O!MPD is free, opensource MPD client based on PHP and mySQL.
http://ompd.pl
GNU General Public License v3.0
40 stars 13 forks source link

Add support for mpd "consume" mode #51

Closed mogwa1 closed 7 years ago

mogwa1 commented 7 years ago

OMPD has a "delete played" option. However, it seems to just delete the songs which come before the currently played track in the playlist. This has some inherent drawbacks: if you use shuffle mode, it will just remove random songs from the playlist, not necessarily the ones that have already been played.

Since OMPD only supports mpd as backend player, wouldn't it make sense to use the mpd built-in "consume" mode? In that mode, mpd will simply remove the current track from the playlist once it has finished playing. This approach works fine in shuffle mode. The only difference is that you have to switch this on before you start listening (it will have no effect on the tracks that have already been played up to the time you switch it on).

ArturSierzant commented 7 years ago

Done in 617c6e5 - long press in 'delete played' toggles consume mode. When consume mode is on, 'delete played' is displayed as 'delete played [auto]'.