summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-07-28 21:05:06 +0200
committerRasmus Steinke <rasi@xssn.at>2014-07-28 21:05:06 +0200
commit42138670e80ae37e88438cf614eb605a841c9c88 (patch)
tree70f9cc82ff42db45d340de6aba4db7359334ed06 /clerk
parentffaa21d866879d7ce70b2e1586af11b55254e358 (diff)
downloadperl-app-clerk-42138670e80ae37e88438cf614eb605a841c9c88.tar.gz
perl-app-clerk-42138670e80ae37e88438cf614eb605a841c9c88.tar.xz
made random album respect mpd_artist value
Diffstat (limited to 'clerk')
-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