Commit 10e3fcbd authored by Michael Straube's avatar Michael Straube

Song: Fix cmus song query

parent 622fef77
......@@ -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"*)
......
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