Commit 85fdd54f authored by Michael Straube's avatar Michael Straube

Song: Speed up Pragha song query

parent 04acc365
......@@ -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"*)
......
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