Pre-cache art for queued songs

This commit is contained in:
Sijmen 2023-04-25 18:59:55 +02:00
parent 27c94f6b3f
commit 948231215e
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -170,7 +170,10 @@
{% for entry in entries %} {% for entry in entries %}
{% match entry %} {% match entry %}
{% when mpd::Entry::Song with { name, path, artist } %} {% when mpd::Entry::Song with { name, path, artist } %}
<li hx-post="/queue?path={{path}}" hx-swap="none" role="button" > <li
onclick="(new Image()).src = '/art?path={{path}}'"
hx-post="/queue?path={{path}}" hx-swap="none" role="button"
>
<span class="material-symbols-outlined">music_note</span> <span class="material-symbols-outlined">music_note</span>
<!-- img src="/art?path={{path}}" --> <!-- img src="/art?path={{path}}" -->
<div class="song"> <div class="song">