diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-05-30 13:25:52 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-05-30 13:25:52 +0200 |
commit | 25eae0edd25c2ec782b3ba5f55a900dc3cd545fd (patch) | |
tree | 7084a3a6ee41107f2095e4214b2ed94506847db8 /clerk | |
parent | b1d4aa795786668ff9d0d9a494c7bc3de9007fd8 (diff) | |
download | perl-app-clerk-25eae0edd25c2ec782b3ba5f55a900dc3cd545fd.tar.gz perl-app-clerk-25eae0edd25c2ec782b3ba5f55a900dc3cd545fd.tar.xz |
fix current artist menu
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -262,7 +262,7 @@ currentMenu () { # checking for exit codes. if [[ $menu == "(Album)"* ]]; then if [[ $val -eq 11 ]]; then - mpc find album "$(echo "$menu" | awk -F "$separator" '{ print $2 }')" albumartist "${albumartist}" | mpc insert + mpc find album "$(echo "$menu" | awk -F "$separator" '{ print $2 }')" artist "${artist}" | mpc insert random=$(mpc status | tail -1 | awk '{ print $6 }') if [[ $random == on ]]; then mpc playlist -f "%position% $separator %artist% $separator %album%" | grep "$album" | grep "$albumartist" | while read tracks; do @@ -274,11 +274,11 @@ currentMenu () { entry="$menu" elif [[ $val -eq 0 || $val -eq 12 ]]; then mpc clear - mpc find album "$(echo ${menu} | awk -F "$separator" '{ print $2 }')" albumartist "${albumartist}" | mpc add + mpc find album "$(echo ${menu} | awk -F "$separator" '{ print $2 }')" artist "${artist}" | mpc add mpc play entry="$menu" elif [[ $val -eq 10 ]]; then - mpc find album "$(echo ${menu} | awk -F "$separator" '{ print $2 }')" albumartist "${albumartist}" | mpc add + mpc find album "$(echo ${menu} | awk -F "$separator" '{ print $2 }')" artist "${artist}" | mpc add entry="$menu" elif [[ $val -eq 1 ]]; then exit |