mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-26 13:49:38 +00:00
Add IP Address to listening session to provide a more accurate history of the network location for each playback.
This commit is contained in:
parent
108b2a60f5
commit
7fb2acc500
5 changed files with 81 additions and 2 deletions
|
|
@ -62,6 +62,7 @@ class PlaybackSessionManager {
|
|||
if (existingDevice.update(deviceInfo)) {
|
||||
await Database.deviceModel.updateFromOld(existingDevice)
|
||||
}
|
||||
existingDevice.ipAddress = ip
|
||||
return existingDevice
|
||||
}
|
||||
}
|
||||
|
|
@ -181,6 +182,7 @@ class PlaybackSessionManager {
|
|||
// New session from local
|
||||
session = new PlaybackSession(sessionJson)
|
||||
session.deviceInfo = deviceInfo
|
||||
session.ipAddress = deviceInfo.ipAddress
|
||||
|
||||
if (session.mediaMetadata == null) {
|
||||
session.mediaMetadata = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue