Add logs to playback session manager

This commit is contained in:
advplyr committed 2023-02-04 13:23:13 -06:00
1 parent b957e1a36b
commit 3383ec2046
3 files changed
+20 -7

No files matched your search

+5
View File
@@ -146,6 +146,11 @@ class PlaybackSession {
return Math.max(0, Math.min(this.currentTime / this.duration, 1))
}
get deviceDescription() {
if (!this.deviceInfo) return 'No Device Info'
return this.deviceInfo.deviceDescription
}
setData(libraryItem, user, mediaPlayer, deviceInfo, startTime, episodeId = null) {
this.id = getId('play')
this.userId = user.id