Fix plexapi.library.Collections.children()

* Fixes Tautulli/Tautulli-Issues#290
This commit is contained in:
JonnyWong16 2020-12-04 19:16:40 -08:00
parent b41249cfa8
commit 0a86f24095
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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):