summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-08-09 01:46:23 +0200
committerRasmus Steinke <rasi@xssn.at>2014-08-09 01:46:23 +0200
commit683d09ff695efce08f227cde2929ac919d9f7fb2 (patch)
tree4fb06bc6be8db91f14295f452cf0ea656e1f364c /clerk
parent5311b1f5212830bbdd4ef745c25bcbc1395e0529 (diff)
downloadperl-app-clerk-683d09ff695efce08f227cde2929ac919d9f7fb2.tar.gz
perl-app-clerk-683d09ff695efce08f227cde2929ac919d9f7fb2.tar.xz
try to fix random tracks
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk8
1 files changed, 4 insertions, 4 deletions
diff --git a/clerk b/clerk
index 8bc855d..f25c5c0 100755
--- a/clerk
+++ b/clerk
@@ -637,10 +637,10 @@ playRandomTracks () {
mpc clear
n=0; while (( n++ < $value ));
do
- artist="$(mpc list artist | shuf | head -1)"
- album="$(mpc list album artist "$artist" | shuf -n 1)"
- title="$(mpc list title album "$album" artist "$artist" | shuf -n 1)"
- mpc find album "$album" artist "$artist" title "$title" | mpc add && mpc play
+ artist="$(mpc list albumartist | shuf | head -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 && mpc play
done
}