Skip to content

Commit 4623a54

Browse files
committed
create select method for Poster class
this will cause a parsing error from xml.Elemtree but the poster will change.
1 parent e62992a commit 4623a54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plexapi/media.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@ def _loadData(self, data):
557557
self.selected = data.attrib.get('selected')
558558
self.thumb = data.attrib.get('thumb')
559559

560+
def select(self):
561+
key = self._initpath[:-1]
562+
data = '%s?url=%s' % (key, compat.quote_plus(self.ratingKey))
563+
self._server.query(data, method=self._server._session.put)
564+
560565

561566
@utils.registerPlexObject
562567
class Producer(MediaTag):

0 commit comments

Comments
 (0)