From 29a9a11085db073029d3f8ae381eaefc400e3cd3 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 21 Sep 2023 17:22:42 -0700 Subject: [PATCH] Fix subsonic song duration --- src/renderer/api/subsonic/subsonic-normalize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/api/subsonic/subsonic-normalize.ts b/src/renderer/api/subsonic/subsonic-normalize.ts index 2aefb204..cb1a1569 100644 --- a/src/renderer/api/subsonic/subsonic-normalize.ts +++ b/src/renderer/api/subsonic/subsonic-normalize.ts @@ -67,7 +67,7 @@ const normalizeSong = ( container: item.contentType, createdAt: item.created, discNumber: item.discNumber || 1, - duration: item.duration || 0, + duration: item.duration ? item.duration * 1000 : 0, gain: null, genres: item.genre ? [