create poster object in media

This commit is contained in:
blacktwin 2019-10-09 10:44:51 -04:00
parent e6548649c8
commit 8ee383cd3d

View file

@ -467,6 +467,23 @@ class Mood(MediaTag):
FILTER = 'mood'
@utils.registerPlexObject
class Poster(PlexObject):
""" Represents a Poster.
Attributes:
TAG (str): 'Poster'
"""
TAG = 'Poster'
def _loadData(self, data):
self._data = data
self.key = data.attrib.get('key')
self.ratingKey = data.attrib.get('ratingKey')
self.selected = data.attrib.get('selected')
self.thumb = data.attrib.get('thumb')
@utils.registerPlexObject
class Producer(MediaTag):
""" Represents a single Producer media tag.