Skip to content

Commit 53a6156

Browse files
committed
fix filepath in uploadPoster for Collections
1 parent 9651f77 commit 53a6156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ def uploadPoster(self, url=None, filepath=None):
10811081
key = '/library/metadata/%s/posters?url=%s' % (self.ratingKey, quote_plus(url))
10821082
self._server.query(key, method=self._server._session.post)
10831083
elif filepath:
1084-
key = '%s/posters?' % self.key
1084+
key = '/library/metadata/%s/posters?' % self.ratingKey
10851085
data = open(filepath, 'rb').read()
10861086
self._server.query(key, method=self._server._session.post, data=data)
10871087

0 commit comments

Comments
 (0)