Add config option to ignore Plex Web clients (#34708)
This commit is contained in:
1 parent
e56dd8ed50
commit
ad419911bc
7 files changed
+78
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user