This commit is contained in:
peter1490 2026-07-10 06:50:24 +02:00 committed by GitHub
commit 490926fcdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 125 additions and 1 deletions

View file

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