From 0c24a1e626f5b0ad83ebeb91d4b2c597185d60b1 Mon Sep 17 00:00:00 2001 From: Lauri Vuorela Date: Thu, 12 Sep 2024 19:46:08 +0200 Subject: [PATCH] add duration to session when creating --- server/managers/PlaybackSessionManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/managers/PlaybackSessionManager.js b/server/managers/PlaybackSessionManager.js index ccdf6c7a..d58bc55b 100644 --- a/server/managers/PlaybackSessionManager.js +++ b/server/managers/PlaybackSessionManager.js @@ -164,6 +164,7 @@ class PlaybackSessionManager { // New session from local session = new PlaybackSession(sessionJson) session.deviceInfo = deviceInfo + session.duration = libraryItem.media.duration Logger.debug(`[PlaybackSessionManager] Inserting new session for "${session.displayTitle}" (${session.id})`) await Database.createPlaybackSession(session) } else {