shell/mpd/bin/cleanup-music.sh: get playlist dir from mpd.conf
This commit is contained in:
parent
738f00e535
commit
f57649eea9
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
set -e
|
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")
|
songs=$(<"$playlistfile")
|
||||||
|
|
||||||
# Delete designated songs
|
# Delete designated songs
|
||||||
|
|
Loading…
Reference in a new issue