mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-29 07:00:19 +00:00
setPoster docstring
This commit is contained in:
parent
c72cc24584
commit
623c304fda
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue