summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-09-09 04:09:17 +0200
committerRasmus Steinke <rasi@xssn.at>2015-09-09 04:09:17 +0200
commit138aadde0ec9e307af721e1fdafe23be9941e2bc (patch)
tree7dae32f1f5a5fd132355493e5282dea269cc93e2 /clerk
parentac3cde3b1140b80e05ed8de4f3e1272c9b8f1e77 (diff)
downloadperl-app-clerk-138aadde0ec9e307af721e1fdafe23be9941e2bc.tar.gz
perl-app-clerk-138aadde0ec9e307af721e1fdafe23be9941e2bc.tar.xz
fix album lookup for current artist
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk8
1 files changed, 4 insertions, 4 deletions
diff --git a/clerk b/clerk
index f0504ea..5543b19 100755
--- a/clerk
+++ b/clerk
@@ -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