mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-29 07:00:19 +00:00
fix for setPoster returning the new selected posters thumb path
setPoster's response.encoding will be None all others are str
This commit is contained in:
parent
47950201b0
commit
c72cc24584
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ class PlexServer(PlexObject):
|
|||
log.warning('BadRequest (%s) %s %s; %s' % (response.status_code, codename, response.url, errtext))
|
||||
raise BadRequest('(%s) %s; %s %s' % (response.status_code, codename, response.url, errtext))
|
||||
data = response.text.encode('utf8')
|
||||
return ElementTree.fromstring(data) if data.strip() else None
|
||||
return ElementTree.fromstring(data) if data.strip() and response.encoding else None
|
||||
|
||||
def search(self, query, mediatype=None, limit=None):
|
||||
""" Returns a list of media items or filter categories from the resulting
|
||||
|
|
Loading…
Reference in a new issue