summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-05-30 13:25:52 +0200
committerRasmus Steinke <rasi@xssn.at>2015-05-30 13:25:52 +0200
commit25eae0edd25c2ec782b3ba5f55a900dc3cd545fd (patch)
tree7084a3a6ee41107f2095e4214b2ed94506847db8 /clerk
parentb1d4aa795786668ff9d0d9a494c7bc3de9007fd8 (diff)
downloadperl-app-clerk-25eae0edd25c2ec782b3ba5f55a900dc3cd545fd.tar.gz
perl-app-clerk-25eae0edd25c2ec782b3ba5f55a900dc3cd545fd.tar.xz
fix current artist menu
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk6
1 files changed, 3 insertions, 3 deletions
diff --git a/clerk b/clerk
index 2add968..7e45afb 100755
--- a/clerk
+++ b/clerk
@@ -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