Commit 2946e785 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #521 from dylanaraps/cmus

Song: [cmus] Simplify block and fix artistsort bug
parents f7274fef c0355cea
......@@ -1137,11 +1137,9 @@ get_song() {
"cmus"*)
IFS=$'\n'
song=($(cmus-remote -Q | grep -F -e "tag artist" -e "tag title" -e "status" | sort))
state="${song[0]/status }"
artist="${song[1]/tag artist }"
title="${song[2]/tag title }"
song="${artist/tag title } - ${title/tag artist }"
cmus=($(cmus-remote -Q | grep -F -e "tag artist " -e "tag title" -e "status" | sort))
song="${cmus[1]/tag artist } - ${cmus[2]/tag title }"
state="${cmus[0]/status }"
;;
"mocp"*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment