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 90cd13dbd1
commit 939eaadf73

View file

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