Skip to content

Commit a322574

Browse files
committed
WTF. why is a key in history None??
1 parent 4e404cb commit a322574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _loadData(self, data):
3030
self._data = data
3131
self.listType = 'video'
3232
self.addedAt = utils.toDatetime(data.attrib.get('addedAt'))
33-
self.key = data.attrib.get('key')
33+
self.key = data.attrib.get('key', '')
3434
self.lastViewedAt = utils.toDatetime(data.attrib.get('lastViewedAt'))
3535
self.librarySectionID = data.attrib.get('librarySectionID')
3636
self.ratingKey = utils.cast(int, data.attrib.get('ratingKey'))

0 commit comments

Comments
 (0)