Files
Nathanwoodburn.github.io/templates/spotify.ascii
Nathan Woodburn df4a8da5df
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 1m23s
Build Docker / BuildImage (push) Successful in 1m28s
feat: Add spotify ascii curl page
2026-03-18 22:41:38 +11:00

22 lines
798 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% 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' }}
{% endif %}