mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 02:05:06 +02:00
add new setDuration and use that
This commit is contained in:
parent
0c24a1e626
commit
d430d9f3ed
2 changed files with 10 additions and 6 deletions
|
@ -164,7 +164,7 @@ class PlaybackSessionManager {
|
|||
// New session from local
|
||||
session = new PlaybackSession(sessionJson)
|
||||
session.deviceInfo = deviceInfo
|
||||
session.duration = libraryItem.media.duration
|
||||
session.setDuration(libraryItem, sessionJson.episodeId)
|
||||
Logger.debug(`[PlaybackSessionManager] Inserting new session for "${session.displayTitle}" (${session.id})`)
|
||||
await Database.createPlaybackSession(session)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue