Fix profile auth

One device id per user.
This commit is contained in:
angelblue05 2018-09-12 22:51:28 -05:00
commit 60db191efa
5 changed files with 15 additions and 5 deletions

View file

@ -61,13 +61,16 @@ class EmbyClient(object):
return state
def start(self, websocket=False):
def start(self, websocket=False, keep_alive=True):
if not self.logged_in:
raise ValueError("User is not authenticated.")
self.http.start_session()
if keep_alive:
self.http.keep_alive = True
if websocket:
self.start_wsc()