mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
create media.Review class
This commit is contained in:
parent
37c857568d
commit
4b908a8f2d
1 changed files with 20 additions and 0 deletions
|
@ -651,6 +651,26 @@ class Role(MediaTag):
|
|||
FILTER = 'role'
|
||||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Review(MediaTag):
|
||||
""" Represents a single Review for a Movie.
|
||||
|
||||
Attributes:
|
||||
TAG (str): 'Review'
|
||||
"""
|
||||
TAG = 'Review'
|
||||
|
||||
def _loadData(self, data):
|
||||
self._data = data
|
||||
self.id = cast(int, data.attrib.get('id', 0))
|
||||
self.filter = data.attrib.get('filter')
|
||||
self.tag = data.attrib.get('tag')
|
||||
self.text = data.attrib.get('text')
|
||||
self.image = data.attrib.get('image')
|
||||
self.link = data.attrib.get('link')
|
||||
self.source = data.attrib.get('source')
|
||||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Similar(MediaTag):
|
||||
""" Represents a single Similar media tag.
|
||||
|
|
Loading…
Reference in a new issue