Fix Plex client controls when connected via plex.tv resource (#37572)

pull/37588/head
jjlawren 2020-07-06 17:16:41 -05:00 committed by GitHub
parent b9f97e64f8
commit ba356c41e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -318,6 +318,8 @@ class PlexServer:
_LOGGER.debug("plex.tv resource connection successful: %s", client)
except NotFound:
_LOGGER.error("plex.tv resource connection failed: %s", resource.name)
else:
client.proxyThroughServer(value=False, server=self._plex_server)
self._plextv_device_cache[client_id] = client
return client

View File

@ -229,6 +229,10 @@ class MockPlexClient:
"""Mock the version attribute."""
return "1.0"
def proxyThroughServer(self, value=True, server=None):
"""Mock the proxyThroughServer method."""
pass
def playMedia(self, item):
"""Mock the playMedia method."""
pass