mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-13 23:47:06 +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.type = data.attrib.get('type')
|
||||||
self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt'))
|
self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt'))
|
||||||
|
|
||||||
@property
|
|
||||||
def children(self):
|
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):
|
def __len__(self):
|
||||||
return self.childCount
|
return self.childCount
|
||||||
|
|
Loading…
Reference in a new issue