mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 13:46:21 +02:00
Fix on print of LabelDevice + redundant code changes
This commit is contained in:
parent
7fb2acc500
commit
a5f33a5502
@ -136,7 +136,7 @@ export default {
|
|||||||
return this._session.deviceInfo || {}
|
return this._session.deviceInfo || {}
|
||||||
},
|
},
|
||||||
hasDeviceInfo() {
|
hasDeviceInfo() {
|
||||||
return Object.keys(this.deviceInfo).length || this._session.ipAddress
|
return Object.keys(this.deviceInfo).length
|
||||||
},
|
},
|
||||||
osDisplayName() {
|
osDisplayName() {
|
||||||
if (!this.deviceInfo.osName) return null
|
if (!this.deviceInfo.osName) return null
|
||||||
|
@ -62,7 +62,6 @@ class PlaybackSessionManager {
|
|||||||
if (existingDevice.update(deviceInfo)) {
|
if (existingDevice.update(deviceInfo)) {
|
||||||
await Database.deviceModel.updateFromOld(existingDevice)
|
await Database.deviceModel.updateFromOld(existingDevice)
|
||||||
}
|
}
|
||||||
existingDevice.ipAddress = ip
|
|
||||||
return existingDevice
|
return existingDevice
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -226,7 +226,7 @@ class PlaybackSession {
|
|||||||
|
|
||||||
this.mediaPlayer = mediaPlayer
|
this.mediaPlayer = mediaPlayer
|
||||||
this.deviceInfo = deviceInfo || new DeviceInfo()
|
this.deviceInfo = deviceInfo || new DeviceInfo()
|
||||||
this.ipAddress = this.deviceInfo.ipAddress
|
this.ipAddress = deviceInfo?.ipAddress || null
|
||||||
this.serverVersion = serverVersion
|
this.serverVersion = serverVersion
|
||||||
|
|
||||||
this.timeListening = 0
|
this.timeListening = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user