feat: Add spotify ascii curl page
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 1m23s
Build Docker / BuildImage (push) Successful in 1m28s

This commit is contained in:
2026-03-18 22:41:38 +11:00
parent d7dc5cd6f3
commit df4a8da5df
3 changed files with 95 additions and 1 deletions

21
templates/spotify.ascii Normal file
View File

@@ -0,0 +1,21 @@
{% 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 %}