summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclerk8
1 files changed, 5 insertions, 3 deletions
diff --git a/clerk b/clerk
index c306360..a43f6d0 100755
--- a/clerk
+++ b/clerk
@@ -1521,9 +1521,11 @@ ${line2}</span>"
album_entry="$firstline"
elif [[ $val -eq 14 ]]; then
- mpc clear;
- mpc findadd date "$date" album "$album" albumartist "$artist";
- mpc searchplay "${album}"
+ currentid=$(mpc current -f "%position%")
+ echo -e "$ALBUM" | uniq | while read line; do
+ mpc insert "$(echo -e "${line}" | awk -F '\t' '{ print $NF }')"
+ done
+ mpc play "$(echo "$(( $currentid + 1 ))")"
album_entry="$firstline"
elif [[ $val -eq 1 ]]; then