summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk9
1 files changed, 6 insertions, 3 deletions
diff --git a/clerk b/clerk
index a43f6d0..48ef1b9 100755
--- a/clerk
+++ b/clerk
@@ -1462,9 +1462,12 @@ ${line2}</span>"
dplayQueue
elif [[ $val -eq 13 ]]; then
- album_entry="${firstline}"
- 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 add "$(echo -e "${line}" | awk -F '\t' '{ print $NF }')"
+ done
+ mpc play "$(echo "$(( $currentid + 1 ))")"
+ album_entry="$firstline"
elif [[ $val -eq 18 ]]; then
mpc prev