shell/mpd/bin/cleanup-music.sh: get playlist dir from mpd.conf

This commit is contained in:
Henrik Lissner 2017-01-06 01:30:22 -05:00
parent 738f00e535
commit f57649eea9

View file

@ -5,7 +5,9 @@
set -e
playlistfile=$HOME/music/.db/playlists/delete-pls.m3u
playlistdir="$(grep playlist_directory $HOME/.config/mpd/mpd.conf | awk '{ print $2; }')"
playlistdir="${playlistdir//\"/}"
playlistfile="$playlistdir/1-star.m3u"
songs=$(<"$playlistfile")
# Delete designated songs