Patch plexapi.library.Collections to PlexPartialObject

This commit is contained in:
JonnyWong16 2020-10-20 15:49:29 -07:00
parent ecbe79b5b9
commit ec9e2fe0f0
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 48 additions and 25 deletions

View file

@ -38,7 +38,7 @@ class Photoalbum(PlexPartialObject):
self.composite = data.attrib.get('composite')
self.guid = data.attrib.get('guid')
self.index = utils.cast(int, data.attrib.get('index'))
self.key = data.attrib.get('key', '').replace('/children', '')
self.key = data.attrib.get('key', '').replace('/children', '') # FIX_BUG_50
self.librarySectionID = data.attrib.get('librarySectionID')
self.librarySectionKey = data.attrib.get('librarySectionKey')
self.librarySectionTitle = data.attrib.get('librarySectionTitle')