diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-09 01:46:23 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-09 01:46:23 +0200 |
commit | 683d09ff695efce08f227cde2929ac919d9f7fb2 (patch) | |
tree | 4fb06bc6be8db91f14295f452cf0ea656e1f364c /clerk | |
parent | 5311b1f5212830bbdd4ef745c25bcbc1395e0529 (diff) | |
download | perl-app-clerk-683d09ff695efce08f227cde2929ac919d9f7fb2.tar.gz perl-app-clerk-683d09ff695efce08f227cde2929ac919d9f7fb2.tar.xz |
try to fix random tracks
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |