summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclerk6
1 files changed, 3 insertions, 3 deletions
diff --git a/clerk b/clerk
index 875c8ee..5d6a0b1 100755
--- a/clerk
+++ b/clerk
@@ -734,9 +734,9 @@ elif [[ "$1" == "-rtrack" ]]; then
rateTrack
elif [[ "$1" == "-ra" ]]; then
mpc clear
- artist="$(mpc list albumartist | shuf | head -1)"
- album="$(mpc list album artist "$artist" | shuf | head -1)"
- mpc find album "$album" artist "$artist" | mpc add && mpc play
+ artist="$(mpc list "$mpd_artist" | shuf | head -1)"
+ album="$(mpc list album "$mpd_artist" "$artist" | shuf | head -1)"
+ mpc find album "$album" "$mpd_artist" "$artist" | mpc add && mpc play
elif [[ "$1" == "-rs" ]]; then
n=0; while (( n++ < $value ));
do