Add Plex service to refresh a library (#39094)

* Add Plex service to refresh a library

* Clean up rebase leftovers

* Re-run black

* Fix docstring

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>

Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>
This commit is contained in:
jjlawren
2020-09-02 13:56:41 -05:00
committed by GitHub
parent 97602a127a
commit cb1cf2238d
6 changed files with 195 additions and 2 deletions

View File

@@ -121,8 +121,6 @@ class MockPlexServer:
self._systemAccounts = list(map(MockPlexSystemAccount, range(num_users)))
self._library = None
self._clients = []
self._sessions = []
self.set_clients(num_users)
@@ -400,6 +398,10 @@ class MockPlexLibrarySection:
"""Mock the key identifier property."""
return str(id(self.title))
def update(self):
"""Mock the update call."""
pass
class MockPlexMediaItem:
"""Mock a Plex Media instance."""