Add shell/+mpd/bin/mpd-recent

This commit is contained in:
Henrik Lissner 2017-04-28 00:16:34 -04:00
parent c82e56e48d
commit 0c016f60c7

10
shell/+mpd/bin/mpd-recent Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Show a list of recently added songs, and the date they were added. This can be
# used to compile a playlist, e.g.
#
# mpc clear
# mpc add $(mpc-recent | cut -f2)
grep added "$HOME/.config/mpd/mpd.log" | sed 's/ : update: added /\t/g'