Skip to content

Commit 87c147c

Browse files
committed
Workarounds for Android & Samsung clients
1 parent c0f2c05 commit 87c147c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plexapi/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,13 @@ def sendCommand(self, command, proxy=None, **params):
204204
return query(key, headers=headers)
205205
except ElementTree.ParseError:
206206
# Workaround for players which don't return valid XML on successful commands
207-
# - Plexamp: `b'OK'`
207+
# - Plexamp, Plex for Android: `b'OK'`
208+
# - Plex for Samsung: `b'<?xml version="1.0"?><Response code="200" status="OK">'`
208209
if self.product in (
209210
'Plexamp',
210211
'Plex for Android (TV)',
212+
'Plex for Android (Mobile)',
213+
'Plex for Samsung',
211214
):
212215
return
213216
raise

0 commit comments

Comments
 (0)