diff --git a/plexapi/library.py b/plexapi/library.py index 5e87a880..1afd72a0 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -1120,15 +1120,22 @@ class Collections(PlexObject): self.childCount = utils.cast(int, data.attrib.get('childCount')) self.collectionMode = data.attrib.get('collectionMode') self.collectionSort = data.attrib.get('collectionSort') + self.contentRating = data.attrib.get('contentRating') self.fields = self.findItems(data, etag='Field') - self.key = data.attrib.get('key') + self.guid = data.attrib.get('guid') self.index = utils.cast(int, data.attrib.get('index')) + self.key = data.attrib.get('key') + self.labels = self.findItems(data, etag='Label') + self.librarySectionID = data.attrib.get('librarySectionID') + self.librarySectionKey = data.attrib.get('librarySectionKey') + self.librarySectionTitle = data.attrib.get('librarySectionTitle') self.maxYear = utils.cast(int, data.attrib.get('maxYear')) self.minYear = utils.cast(int, data.attrib.get('minYear')) self.subtype = data.attrib.get('subtype') self.summary = data.attrib.get('summary') self.thumb = data.attrib.get('thumb') self.title = data.attrib.get('title') + self.titleSort = data.attrib.get('titleSort') self.type = data.attrib.get('type') self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt'))