setPoster docstring

This commit is contained in:
blacktwin 2020-03-18 00:55:17 -04:00
parent c72cc24584
commit 623c304fda

View file

@ -445,6 +445,7 @@ class PlexPartialObject(PlexObject):
self._server.query(key, method=self._server._session.post, data=data)
def setPoster(self, poster):
""" Set . :class:`~plexapi.media.Poster` to :class:`~plexapi.video.Video` """
key = poster._initpath[:-1]
data = '%s?url=%s' % (key, quote_plus(poster.ratingKey))
self._server.query(data, method=self._server._session.put)