diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-09 04:09:17 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-09 04:09:17 +0200 |
commit | 138aadde0ec9e307af721e1fdafe23be9941e2bc (patch) | |
tree | 7dae32f1f5a5fd132355493e5282dea269cc93e2 /clerk | |
parent | ac3cde3b1140b80e05ed8de4f3e1272c9b8f1e77 (diff) | |
download | perl-app-clerk-138aadde0ec9e307af721e1fdafe23be9941e2bc.tar.gz perl-app-clerk-138aadde0ec9e307af721e1fdafe23be9941e2bc.tar.xz |
fix album lookup for current artist
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -390,13 +390,13 @@ currentMenu () { if [[ $menu == "1 [ Browse Albums ]>" ]]; then filter=$(mpc current -f '%artist%') - firstsong=$(mpc -f '%file%' search artist "$(mpc current -f '%artist%')" | head -1) - select="$firstsong" filter="$filter" addAlbum alphabet + firstsong=$(mpc -f '%album% %album%' search artist "$(mpc current -f '%artist%')" album "$(mpc current -f '%album%')" | head -1) + album_entry="$firstsong" filter="$filter" addAlbum alphabet elif [[ $menu == "2 [ Browse Tracks ]>" ]]; then filter=$(mpc current -f '%artist%') - firstsong=$(mpc -f '%file%' search artist "$(mpc current -f '%artist%')" | head -1) - select="$firstsong" filter="$filter" addTrackTags + firstsong=$(mpc -f '%file%' search artist "$(mpc current -f '%artist%')" title "$(mpc current -f '%title%')" album "$(mpc current -f '%album%')" | head -1) + entry="$firstsong" filter="$filter" addTrackTags elif [[ $menu == "" ]]; then dplayPrompt |