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:
blacktwin 2020-03-12 10:24:29 -04:00
parent e62992afa9
commit 4623a54cc8

View file

@ -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):