Add config option to ignore Plex Web clients (#34708)

This commit is contained in:
jjlawren authored and GitHub committed 2020-05-08 09:49:15 -07:00
1 parent e56dd8ed50
commit ad419911bc
7 files changed
+78 -3

No files matched your search

+3
View File
@@ -134,6 +134,7 @@ class MockPlexClient:
"""Initialize the object."""
self.machineIdentifier = f"client-{index+1}"
self._baseurl = url
self._index = index
def url(self, key):
"""Mock the url method."""
@@ -152,6 +153,8 @@ class MockPlexClient:
@property
def product(self):
"""Mock the product attribute."""
if self._index == 1:
return "Plex Web"
return "PRODUCT"
@property