add duration to session when creating

This commit is contained in:
Lauri Vuorela 2024-09-12 19:46:08 +02:00
parent 5b09bd8242
commit 0c24a1e626

View File

@ -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 {