Commit 622fef77 authored by Michael Straube's avatar Michael Straube

Song: Speed up Banshee song query

parent 4b61dc1a
......@@ -1243,9 +1243,7 @@ get_song() {
;;
"banshee"*)
artist="$(banshee --query-artist | awk -F':' '{print $2}')"
title="$(banshee --query-title | awk -F':' '{print $2}')"
song="$artist - $title"
song="$(banshee --query-artist --query-title | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
;;
"amarok"*)
......
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