From 43a54d556da1e04a033eb04ad8a1b7d9905bdb82 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 24 Jan 2021 21:28:27 -0800 Subject: [PATCH] Fix photo album key --- plexapi/photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexapi/photo.py b/plexapi/photo.py index 49d640bc2..1e72f1cc3 100644 --- a/plexapi/photo.py +++ b/plexapi/photo.py @@ -44,7 +44,7 @@ def _loadData(self, data): 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')