The mpv example was my main thought. If you want to add something to a playlist using mpv's playlist feature you have to stop and restart mpv.
The scriptability of mpv is really nice if you're the sort of person who likes building your perfect environment, and also a huge pit of addictive time sinks. </warning>