Skip to content

Commit 3b62211

Browse files
authored
Merge pull request #650 from JonnyWong16/bugfix/photoalbum_key
Fix photo album key
2 parents 77b1d0e + 43a54d5 commit 3b62211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/photo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _loadData(self, data):
4444
self.fields = self.findItems(data, media.Field)
4545
self.guid = data.attrib.get('guid')
4646
self.index = utils.cast(int, data.attrib.get('index'))
47-
self.key = data.attrib.get('key', '')
47+
self.key = data.attrib.get('key', '').replace('/children', '') # FIX_BUG_50
4848
self.librarySectionID = data.attrib.get('librarySectionID')
4949
self.librarySectionKey = data.attrib.get('librarySectionKey')
5050
self.librarySectionTitle = data.attrib.get('librarySectionTitle')

0 commit comments

Comments
 (0)