Fix plexapi.library.Collections.children()
* Fixes Tautulli/Tautulli-Issues#290
This commit is contained in:
@@ -1197,9 +1197,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)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def thumbUrl(self):
|
def thumbUrl(self):
|
||||||
|
Reference in New Issue
Block a user