Skip updates when Plex client viewing photos (#31556)

This commit is contained in:
jjlawren authored and GitHub committed 2020-02-06 14:26:34 -08:00
1 parent 0e68ace3dd
commit 3a3328dc13
2 files changed
+6

No files matched your search

+3
View File
@@ -132,6 +132,9 @@ class PlexServer:
_LOGGER.debug("New device: %s", device.machineIdentifier)
for session in sessions:
if session.TYPE == "photo":
_LOGGER.debug("Photo session detected, skipping: %s", session)
continue
for player in session.players:
self._known_idle.discard(player.machineIdentifier)
available_clients.setdefault(