Add labels to plexapi.library.Collections

This commit is contained in:
JonnyWong16 2020-09-27 14:26:32 -07:00
parent 7016d3feea
commit 28e2463c4f
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -1113,6 +1113,7 @@ class Collections(PlexObject):
self.maxYear = utils.cast(int, data.attrib.get('maxYear'))
self.collectionMode = data.attrib.get('collectionMode')
self.collectionSort = data.attrib.get('collectionSort')
self.labels = self.findItems(data, media.Label)
self.fields = self.findItems(data, media.Field)
@property