diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-08 01:35:27 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-08 01:35:27 +0200 |
commit | a8000fb7cd0549d9ef24f44116344a63a414b86a (patch) | |
tree | ec4f6368644b98934712a9655f3a60b52a40f325 /clerk | |
parent | 922e062e696fea2b81210797b19e4f0412deca12 (diff) | |
download | perl-app-clerk-a8000fb7cd0549d9ef24f44116344a63a414b86a.tar.gz perl-app-clerk-a8000fb7cd0549d9ef24f44116344a63a414b86a.tar.xz |
fix lookup album
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -775,6 +775,7 @@ songs () { TRACKDISPLAY_NEW=$(echo "${TRACKDISPLAY}" | perl -pe "s/ +/\t/g") POS=$(echo "${TRACKDISPLAY_NEW}" | awk -F '\t' '{ print $1 }') ARTIST=$(echo "${TRACKDISPLAY_NEW}" | awk -F '\t' '{ print $4 }') + TITLE=$(echo "${TRACKDISPLAY_NEW}" | awk -F '\t' '{ print $3 }') if [[ $val -eq 1 ]]; then exit @@ -819,7 +820,7 @@ songs () { seekMenu elif [[ $val -eq 21 ]]; then - temp=$(mpc playlist --format '%position%\t%file%' | grep "^${POS}" | grep "${ARTIST}" | awk -F '\t' '{ print $2 }') + temp=$(mpc playlist --format '%position%\t%file%' | grep "^${POS}" | grep "${ARTIST}" | grep "${TITLE}" | awk -F '\t' '{ print $2 }') info=$(mpc --format '%albumartist%\t%album%\t%date%\t%track%\t%title%' search filename "${temp}") echo "${info}" |