summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-08-04 19:39:44 +0200
committerRasmus Steinke <rasi@xssn.at>2014-08-04 19:39:44 +0200
commitc7f501d708b35615c9e31833780dbd96e3ef6d67 (patch)
tree78d3fb38578d1aeeb345613bb157e6d4ab6533e2 /clerk
parent6e5d93217c301f9668e1da87d451bbe447ad90f0 (diff)
downloadperl-app-clerk-c7f501d708b35615c9e31833780dbd96e3ef6d67.tar.gz
perl-app-clerk-c7f501d708b35615c9e31833780dbd96e3ef6d67.tar.xz
fix
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
}