Skip to content

Commit cdcdfa8

Browse files
authored
Merge pull request #442 from jjlawren/more_client_workarounds
Workarounds for Android mobile & Samsung TV clients
2 parents c0f2c05 + 87c147c commit cdcdfa8

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)