diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-06-07 14:21:03 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-06-07 14:21:03 +0200 |
commit | 6bcf868c1fa69678565dafd10901b7044eb8343f (patch) | |
tree | c952221f8110666945955f795e35030cc38c2db3 /clerk | |
parent | b266123b3107e9b47fd32e2b1e42f2c1cd0dd257 (diff) | |
download | perl-app-clerk-6bcf868c1fa69678565dafd10901b7044eb8343f.tar.gz perl-app-clerk-6bcf868c1fa69678565dafd10901b7044eb8343f.tar.xz |
fix addplay
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |