Make media player block only append artist if it is defined

This commit is contained in:
Jonathan Hodgson 2018-05-14 12:18:21 +01:00
parent ac43015522
commit e5b096282d

View file

@ -20,7 +20,9 @@ artist=$($COMMAND metadata artist | sed "s/\&/\&/g")
if [ "$title" != "(null)" ]; then
ret="<span foreground='$colour'>$title</span>"
if [ -n "$artist" ]; then
ret="$ret - $artist"
fi
echo "$ret";
fi