Merge pull request #569 from mstraube/exaile

Song: Fix Exaile song query
This commit is contained in:
Dylan Araps 2016-12-27 10:43:45 +11:00 committed by GitHub
commit 04acc365bb
1 changed files with 1 additions and 2 deletions

View File

@ -1262,8 +1262,7 @@ get_song() {
"exaile"*)
song="$(dbus-send --print-reply --dest=org.exaile.Exaile /org/exaile/Exaile \
org.exaile.Exaile.Query | awk -F':|,' '{printf $6 " -" $4}')"
song="${song:3}"
org.exaile.Exaile.Query | awk -F':|,' '{if ($6 && $4) printf $6 " -" $4}')"
;;
esac