add reviews method to video.Movie class

This commit is contained in:
blacktwin 2020-07-15 14:41:09 -04:00
parent 4b908a8f2d
commit c7f8b86ec5

View file

@ -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.