From 0a86f2409538b53d928c2b1836e29ecd6aa31ce4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 4 Dec 2020 19:16:40 -0800 Subject: [PATCH] Fix plexapi.library.Collections.children() * Fixes Tautulli/Tautulli-Issues#290 --- lib/plexapi/library.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plexapi/library.py b/lib/plexapi/library.py index c99919d3..306deb3b 100644 --- a/lib/plexapi/library.py +++ b/lib/plexapi/library.py @@ -1197,9 +1197,10 @@ class Collections(PlexPartialObject): self.type = data.attrib.get('type') self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt')) - @property def children(self): - return self.fetchItems(self.key) + """ Returns a list of all items in the collection. """ + key = '/library/metadata/%s/children' % self.ratingKey + return self.fetchItems(key) @property def thumbUrl(self):