mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 13:51:35 +00:00
Merge 8eeb9e3305 into 82aec5f60c
This commit is contained in:
commit
490926fcdf
6 changed files with 125 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ class PlaybackSession {
|
|||
this.playMethod = null
|
||||
this.mediaPlayer = null
|
||||
this.deviceInfo = null
|
||||
this.ipAddress = null
|
||||
this.serverVersion = null
|
||||
|
||||
this.date = null
|
||||
|
|
@ -67,6 +68,7 @@ class PlaybackSession {
|
|||
playMethod: this.playMethod,
|
||||
mediaPlayer: this.mediaPlayer,
|
||||
deviceInfo: this.deviceInfo?.toJSON() || null,
|
||||
ipAddress: this.ipAddress,
|
||||
serverVersion: this.serverVersion,
|
||||
date: this.date,
|
||||
dayOfWeek: this.dayOfWeek,
|
||||
|
|
@ -101,6 +103,7 @@ class PlaybackSession {
|
|||
playMethod: this.playMethod,
|
||||
mediaPlayer: this.mediaPlayer,
|
||||
deviceInfo: this.deviceInfo?.toJSON() || null,
|
||||
ipAddress: this.ipAddress,
|
||||
serverVersion: this.serverVersion,
|
||||
date: this.date,
|
||||
dayOfWeek: this.dayOfWeek,
|
||||
|
|
@ -126,6 +129,7 @@ class PlaybackSession {
|
|||
this.duration = session.duration
|
||||
this.playMethod = session.playMethod
|
||||
this.mediaPlayer = session.mediaPlayer || null
|
||||
this.ipAddress = session.ipAddress || null
|
||||
|
||||
// Temp do not store old IDs
|
||||
if (this.libraryId?.startsWith('lib_')) {
|
||||
|
|
@ -223,6 +227,7 @@ class PlaybackSession {
|
|||
|
||||
this.mediaPlayer = mediaPlayer
|
||||
this.deviceInfo = deviceInfo || new DeviceInfo()
|
||||
this.ipAddress = deviceInfo?.ipAddress || null
|
||||
this.serverVersion = serverVersion
|
||||
|
||||
this.timeListening = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue