fix scrobblerrr FOR REAL
This commit is contained in:
parent
8a6d08d276
commit
41af765c7b
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@
|
|||
"@attr"?: { nowplaying: boolean },
|
||||
album: LastFmResource<string>,
|
||||
artist: LastFmResource<string>,
|
||||
date?: LastFmResource<string>,
|
||||
date?: LastFmResource<string> & { uts: number },
|
||||
image: LastFmResource<string>[],
|
||||
name: string,
|
||||
url: string,
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
title.href = track.url;
|
||||
album.innerText = track.album["#text"];
|
||||
artist.innerText = track.artist["#text"];
|
||||
time.innerText = (track.date && new Date(track.date["#text"]).toLocaleString(undefined, {
|
||||
time.innerText = (track.date && new Date(track.date.uts * 1000).toLocaleString(undefined, {
|
||||
dateStyle: "medium",
|
||||
timeStyle: "short"
|
||||
})) || (track["@attr"]?.nowplaying && "NOW!!!") || "epic error getting play time..";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue