Skip to content

Commit a13d17c

Browse files
committed
track accountID in Playable
1 parent 6ade288 commit a13d17c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plexapi/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ def _loadData(self, data):
452452
self.transcodeSessions = self.findItems(data, etag='TranscodeSession') # session
453453
self.session = self.findItems(data, etag='Session') # session
454454
self.viewedAt = utils.toDatetime(data.attrib.get('viewedAt')) # history
455+
self.accountID = utils.cast(int, data.attrib.get('accountID')) # history
455456
self.playlistItemID = utils.cast(int, data.attrib.get('playlistItemID')) # playlist
456457

457458
def isFullObject(self):

plexapi/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,6 @@ class SystemAccount(PlexObject):
522522

523523
def _loadData(self, data):
524524
self._data = data
525-
self.accountId = cast(int, data.attrib.get('id'))
525+
self.accountID = cast(int, data.attrib.get('id'))
526526
self.accountKey = data.attrib.get('key')
527527
self.name = data.attrib.get('name')

0 commit comments

Comments
 (0)