diff options
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 } |