2017-09-05 10:09:02 -07:00
|
|
|
#!/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-played | cut -f2)
|
|
|
|
|
2017-09-05 10:11:13 -07:00
|
|
|
grep played "$HOME/.config/mpd/mpd.log" | sed -r 's/ : player: played "(.+)"/\t\1/g' | tail -n${1:-20}
|
2017-09-05 10:09:02 -07:00
|
|
|
|