From 7b13e24ce4243f97c9c46e75655c40ce8bdc7681 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 2 Jan 2023 17:55:50 -0800 Subject: [PATCH] Calculate duration playlist duration in ms --- src/renderer/api/navidrome.api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/api/navidrome.api.ts b/src/renderer/api/navidrome.api.ts index 6e0b7c8f..dd57d5a3 100644 --- a/src/renderer/api/navidrome.api.ts +++ b/src/renderer/api/navidrome.api.ts @@ -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,