Song: Speed up Pragha song query

This commit is contained in:
Michael Straube 2016-12-27 10:21:02 +01:00
parent 04acc365bb
commit 85fdd54f95
1 changed files with 1 additions and 3 deletions

View File

@ -1255,9 +1255,7 @@ get_song() {
;;
"pragha"*)
artist="$(pragha -c | awk -F':' '/artist/ {print $2}')"
title="$(pragha -c | awk -F':' '/title/ {print $2}')"
song="$artist - $title"
song="$(pragha -c | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
;;
"exaile"*)