Files
Nathanwoodburn.github.io/templates/spotify.ascii
Nathan Woodburn 968d9587b6
All checks were successful
Build Docker / BuildImage (push) Successful in 1m9s
Check Code Quality / RuffCheck (push) Successful in 1m19s
feat: Add support for specifying cli spotify image size
2026-03-18 23:08:13 +11:00

846 B

{% include 'header.ascii' %}
API [/api/v1]
 
───────────────────────────────────────────────
CURRENTLY PLAYING
───────────────────
{% if track.error %}
Error: {{ track.error }}
{% else %}
{% if track.ascii_art %}
{{ track.ascii_art }}
 
{% endif %}
Song: {{ track.song_name }}
Artist: {{ track.artist }}
Album: {{ track.album_name }}
URL: {{ track.url }}
 
Progress: {{ track.progress_ms // 60000 }}:{{ '%02d' % ((track.progress_ms // 1000) % 60) }} / {{ track.duration_ms // 60000 }}:{{ '%02d' % ((track.duration_ms // 1000) % 60) }}
Status: {{ 'Playing' if track.is_playing else 'Paused' }}
Note: Specify width with ?width=80 (default 40)
{% endif %}