diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-07-28 21:05:06 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-07-28 21:05:06 +0200 |
commit | 42138670e80ae37e88438cf614eb605a841c9c88 (patch) | |
tree | 70f9cc82ff42db45d340de6aba4db7359334ed06 /clerk | |
parent | ffaa21d866879d7ce70b2e1586af11b55254e358 (diff) | |
download | perl-app-clerk-42138670e80ae37e88438cf614eb605a841c9c88.tar.gz perl-app-clerk-42138670e80ae37e88438cf614eb605a841c9c88.tar.xz |
made random album respect mpd_artist value
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |