mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-17 05:18:26 +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'
|
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
|
@utils.registerPlexObject
|
||||||
class Similar(MediaTag):
|
class Similar(MediaTag):
|
||||||
""" Represents a single Similar media tag.
|
""" Represents a single Similar media tag.
|
||||||
|
|
Loading…
Add table
Reference in a new issue