mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	add duration to session when creating
This commit is contained in:
		
							parent
							
								
									5b09bd8242
								
							
						
					
					
						commit
						0c24a1e626
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user