mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 21:20:18 +00:00
Workarounds for Android & Samsung clients
This commit is contained in:
parent
c0f2c05627
commit
87c147c551
1 changed files with 4 additions and 1 deletions
|
@ -204,10 +204,13 @@ class PlexClient(PlexObject):
|
||||||
return query(key, headers=headers)
|
return query(key, headers=headers)
|
||||||
except ElementTree.ParseError:
|
except ElementTree.ParseError:
|
||||||
# Workaround for players which don't return valid XML on successful commands
|
# Workaround for players which don't return valid XML on successful commands
|
||||||
# - Plexamp: `b'OK'`
|
# - Plexamp, Plex for Android: `b'OK'`
|
||||||
|
# - Plex for Samsung: `b'<?xml version="1.0"?><Response code="200" status="OK">'`
|
||||||
if self.product in (
|
if self.product in (
|
||||||
'Plexamp',
|
'Plexamp',
|
||||||
'Plex for Android (TV)',
|
'Plex for Android (TV)',
|
||||||
|
'Plex for Android (Mobile)',
|
||||||
|
'Plex for Samsung',
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue