Make media player block only append artist if it is defined
This commit is contained in:
parent
ac43015522
commit
e5b096282d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue