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
1 changed files with 4 additions and 1 deletions

View File

@ -170,7 +170,10 @@
{% for entry in entries %}
{% match entry %}
{% 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>
<!-- img src="/art?path={{path}}" -->
<div class="song">