mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
create select method for Poster class
this will cause a parsing error from xml.Elemtree but the poster will change.
This commit is contained in:
parent
e62992afa9
commit
4623a54cc8
1 changed files with 5 additions and 0 deletions
|
@ -557,6 +557,11 @@ class Poster(PlexObject):
|
|||
self.selected = data.attrib.get('selected')
|
||||
self.thumb = data.attrib.get('thumb')
|
||||
|
||||
def select(self):
|
||||
key = self._initpath[:-1]
|
||||
data = '%s?url=%s' % (key, compat.quote_plus(self.ratingKey))
|
||||
self._server.query(data, method=self._server._session.put)
|
||||
|
||||
|
||||
@utils.registerPlexObject
|
||||
class Producer(MediaTag):
|
||||
|
|
Loading…
Reference in a new issue