summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-06-07 14:21:03 +0200
committerRasmus Steinke <rasi@xssn.at>2016-06-07 14:21:03 +0200
commit6bcf868c1fa69678565dafd10901b7044eb8343f (patch)
treec952221f8110666945955f795e35030cc38c2db3 /clerk
parentb266123b3107e9b47fd32e2b1e42f2c1cd0dd257 (diff)
downloadperl-app-clerk-6bcf868c1fa69678565dafd10901b7044eb8343f.tar.gz
perl-app-clerk-6bcf868c1fa69678565dafd10901b7044eb8343f.tar.xz
fix addplay
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