Song: Fix cmus song query

This commit is contained in:
Michael Straube 2016-12-27 12:28:19 +01:00
parent 622fef7780
commit 10e3fcbd56
1 changed files with 1 additions and 3 deletions

View File

@ -1223,9 +1223,7 @@ get_song() {
"guayadeque"*) get_song_dbus "guayadeque" ;;
"cmus"*)
artist="$(cmus-remote -Q | grep -F "tag artist ")"
title="$(cmus-remote -Q | grep -F "tag title")"
song="${artist/tag artist} - ${title/tag title}"
song="$(cmus-remote -Q | awk '/tag artist/ {$1=$2=""; print; print " - "} /tag title/ {$1=$2=""; print}')"
;;
"spotify"*)