{% if mpd_status["state"] == "play" %} {% if mpd_song["artist"] and mpd_song["title"] %}
{{ mpd_song["artist"] }}
–
{{ mpd_song["title"] }}
{% elif mpd_song["title"] %}
{{ mpd_song["title"] }}
{% elif mpd_song["artist"] %}
{{ mpd_song["artist"] }}
{% else %}
Unknown music, fix your metadata!
{% endif %} {% endif %}
Messages
{% for m in messages %}
{{ "{:0=2d}".format(m.time.hour) }}:{{ "{:0=2d}".format(m.time.minute) }}:{{ "{:0=2d}".format(m.time.second) }}
-
{{ m.sender }}
:
{{ m.msg }}
{% endfor %}