mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 05:30:20 +00:00
add reviews method to video.Movie class
This commit is contained in:
parent
4b908a8f2d
commit
c7f8b86ec5
1 changed files with 9 additions and 0 deletions
|
@ -332,6 +332,15 @@ class Movie(Playable, Video):
|
|||
# This is just for compat.
|
||||
return self.title
|
||||
|
||||
def reviews(self):
|
||||
""" Returns a list of :class:`~plexapi.media.Review` objects. """
|
||||
items = []
|
||||
data = self._server.query(self.key + '?includeReviews=1')
|
||||
for item in data.iter('Review'):
|
||||
items.append(media.Review(data=item, server=self._server))
|
||||
|
||||
return items
|
||||
|
||||
def download(self, savepath=None, keep_original_name=False, **kwargs):
|
||||
""" Download video files to specified directory.
|
||||
|
||||
|
|
Loading…
Reference in a new issue