mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
Fix collection children
This commit is contained in:
parent
d5701aa8c4
commit
a341cdad5b
1 changed files with 3 additions and 2 deletions
|
@ -1478,9 +1478,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)
|
||||
|
||||
def __len__(self):
|
||||
return self.childCount
|
||||
|
|
Loading…
Reference in a new issue