ADD --force flag to cmd_save#131
Conversation
|
I think |
|
Yes indeed, I thought the same thing. Actually, initially, I was going for I really like the idea of making it an option for |
Allow to replace an existing playlist, calling mpd_send_save_queue with the MPD_QUEUE_SAVE_MODE_REPLACE flag.
e733eaa to
452d7de
Compare
|
Alright, I did change it to a flag. So, looking at the implementation of options and seeing they are not actually bound to a command but always global, I decided to go with the |
Allow to replace an existing playlist with the
mpc replace PLAYLISTcommand, callingmpd_send_save_queuewith theMPD_QUEUE_SAVE_MODE_REPLACEflag.Hi 👋
I was tired of having to do
mpc rm PLAYLIST && mpc save PLAYLIST, so I implementedmpc replace PLAYLIST.That… may be solving a first world problem. 😅
I don't know if you're interested in that or if you would consider it feature creep. I'm cool either way, I have the patch managed by Portage so I can patch my local copy of mpc, so no big deal if you think this patch doesn't belong in the main tree - just submitting it in case you think it does.