summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-08-09 02:08:49 +0200
committerRasmus Steinke <rasi@xssn.at>2014-08-09 02:08:49 +0200
commitdd8a5f81cd2343308dcb4132859add93af70fdfc (patch)
tree53e9d3fe4aff7ae084add6aeac57e8b2646c1051 /clerk
parent603546b61650227cf7754bdb5926cd0120688131 (diff)
downloadperl-app-clerk-dd8a5f81cd2343308dcb4132859add93af70fdfc.tar.gz
perl-app-clerk-dd8a5f81cd2343308dcb4132859add93af70fdfc.tar.xz
made randomtracks $mpd_artist aware
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk8
1 files changed, 4 insertions, 4 deletions
diff --git a/clerk b/clerk
index 58172b0..1a49d7c 100755
--- a/clerk
+++ b/clerk
@@ -637,10 +637,10 @@ playRandomTracks () {
mpc clear
n=0; while (( n++ < $value ));
do
- artist="$(mpc list albumartist | shuf -n 1)"
- album="$(mpc list album albumartist "$artist" | shuf -n 1)"
- title="$(mpc list title album "$album" albumartist "$artist" | shuf -n 1)"
- mpc find album "$album" albumartist "$artist" title "$title" | mpc add
+ artist="$(mpc list "$mpd_artist" | shuf -n 1)"
+ album="$(mpc list album "$mpd_artist" "$artist" | shuf -n 1)"
+ title="$(mpc list title album "$album" "$mpd_artist" "$artist" | shuf -n 1)"
+ mpc find album "$album" "$mpd_artist" "$artist" title "$title" | mpc add
done
mpc play
}