Fix photo album key

This commit is contained in:
JonnyWong16 2021-01-24 21:28:27 -08:00
parent d3fbc4f25b
commit 43a54d556d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -44,7 +44,7 @@ class Photoalbum(PlexPartialObject):
self.fields = self.findItems(data, media.Field)
self.guid = data.attrib.get('guid')
self.index = utils.cast(int, data.attrib.get('index'))
self.key = data.attrib.get('key', '')
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')