diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-09 02:08:49 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-09 02:08:49 +0200 |
commit | dd8a5f81cd2343308dcb4132859add93af70fdfc (patch) | |
tree | 53e9d3fe4aff7ae084add6aeac57e8b2646c1051 /clerk | |
parent | 603546b61650227cf7754bdb5926cd0120688131 (diff) | |
download | perl-app-clerk-dd8a5f81cd2343308dcb4132859add93af70fdfc.tar.gz perl-app-clerk-dd8a5f81cd2343308dcb4132859add93af70fdfc.tar.xz |
made randomtracks $mpd_artist aware
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 albumartist | shuf -n 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 + artist="$(mpc list "$mpd_artist" | shuf -n 1)" + album="$(mpc list album "$mpd_artist" "$artist" | shuf -n 1)" + title="$(mpc list title album "$album" "$mpd_artist" "$artist" | shuf -n 1)" + mpc find album "$album" "$mpd_artist" "$artist" title "$title" | mpc add done mpc play } |