add: track last.fm status update time

This commit is contained in:
trisua 2025-04-26 19:31:15 -04:00
parent 0765156697
commit c7235158c2
2 changed files with 3 additions and 0 deletions

View file

@ -855,6 +855,8 @@ if state and state.data %}
<b>Listening on</b> <b>Listening on</b>
{{ icon "last_fm" }} {{ icon "last_fm" }}
</div> </div>
<span class="fade date short">{{ state.data.timestamp }}</span>
</div> </div>
<div class="card secondary flex gap-2"> <div class="card secondary flex gap-2">

View file

@ -675,6 +675,7 @@
}, },
data: { data: {
id: playing.mbid, id: playing.mbid,
timestamp: new Date().getTime().toString(),
// track // track
track: playing.name, track: playing.name,
artist: playing.artist.name, artist: playing.artist.name,