Ignore remote Plex clients during plex.tv lookup (#38327)

This commit is contained in:
jjlawren authored and Paulus Schoutsen committed 2020-08-01 01:59:42 +00:00
1 parent d1fbcba7b6
commit d65545964b
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ class PlexServer:
self._plextv_clients = [
x
for x in self.account.resources()
if "player" in x.provides and x.presence
if "player" in x.provides and x.presence and x.publicAddressMatches
]
_LOGGER.debug(
"Current available clients from plex.tv: %s", self._plextv_clients
+1
View File
@@ -53,6 +53,7 @@ class MockResource:
self.provides = ["player"]
self.device = MockPlexClient(f"http://192.168.0.1{index}:32500", index + 10)
self.presence = index == 0
self.publicAddressMatches = True
def connect(self, timeout):
"""Mock the resource connect method."""