mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
Restore deprecated Collection.children
This commit is contained in:
parent
8958aea67f
commit
4a3d7db9fa
1 changed files with 4 additions and 0 deletions
|
@ -1478,6 +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)
|
||||
|
||||
def items(self):
|
||||
""" Returns a list of all items in the collection. """
|
||||
key = '/library/metadata/%s/children' % self.ratingKey
|
||||
|
|
Loading…
Reference in a new issue