Add shell/+mpd/bin/mpd-recent
This commit is contained in:
parent
c82e56e48d
commit
0c016f60c7
10
shell/+mpd/bin/mpd-recent
Executable file
10
shell/+mpd/bin/mpd-recent
Executable 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'
|
||||||
|
|
Loading…
Reference in a new issue