From 8ee383cd3dad0749919ab57bc82080e30009b227 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Wed, 9 Oct 2019 10:44:51 -0400 Subject: [PATCH] create poster object in media --- plexapi/media.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plexapi/media.py b/plexapi/media.py index bf8ca2b9..6f1770d7 100644 --- a/plexapi/media.py +++ b/plexapi/media.py @@ -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.