Song: Speed up Banshee song query

This commit is contained in:
Michael Straube 2016-12-27 10:58:49 +01:00
parent 4b61dc1a9b
commit 622fef7780
1 changed files with 1 additions and 3 deletions

View File

@ -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"*)