mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Calculate duration playlist duration in ms
This commit is contained in:
parent
088f1d0f99
commit
7b13e24ce4
@ -531,7 +531,7 @@ const normalizeAlbum = (item: NDAlbum, server: ServerListItem, imageSize?: numbe
|
||||
artists: [{ id: item.artistId, name: item.artist }],
|
||||
backdropImageUrl: imageBackdropUrl,
|
||||
createdAt: item.createdAt.split('T')[0],
|
||||
duration: item.duration || null,
|
||||
duration: item.duration * 1000 || null,
|
||||
genres: item.genres,
|
||||
id: item.id,
|
||||
imagePlaceholderUrl,
|
||||
@ -591,7 +591,7 @@ const normalizePlaylist = (
|
||||
});
|
||||
|
||||
return {
|
||||
duration: item.duration,
|
||||
duration: item.duration * 1000,
|
||||
id: item.id,
|
||||
imagePlaceholderUrl,
|
||||
imageUrl,
|
||||
|
Loading…
Reference in New Issue
Block a user