summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk3
1 files changed, 2 insertions, 1 deletions
diff --git a/clerk b/clerk
index 0b83291..e7aefdc 100755
--- a/clerk
+++ b/clerk
@@ -603,12 +603,13 @@ playRandomAlbum () {
}
playRandomTracks () {
+ mpc clear
n=0; while (( n++ < $value ));
do
artist="$(mpc list artist | shuf | head -1)"
album="$(mpc list album artist "$artist" | shuf | head -1)"
title="$(mpc list title album "$album" artist "$artist" | shuf | head -1)"
- mpc clear && mpc find album "$album" artist "$artist" title "$title" | mpc add && mpc play
+ mpc find album "$album" artist "$artist" title "$title" | mpc add && mpc play
done
}