From 644783fae50115b93fc9b3181153e304af96cc7f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 5 Sep 2016 03:38:57 -0500 Subject: [PATCH] Update user login --- resources/lib/userclient.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/userclient.py b/resources/lib/userclient.py index bb56f029..2d68bba1 100644 --- a/resources/lib/userclient.py +++ b/resources/lib/userclient.py @@ -139,15 +139,15 @@ class UserClient(threading.Thread): def _set_user_server(self): - self._server = self.download("{server}/emby/System/Configuration?format=json") - settings('markPlayed', value=str(self._server['MaxResumePct'])) - self._user = self.download("{server}/emby/Users/{UserId}?format=json") settings('username', value=self._user['Name']) if "PrimaryImageTag" in self._user: window('EmbyUserImage', value=artwork.Artwork().getUserArtwork(self._user['Id'], 'Primary')) + self._server = self.download("{server}/emby/System/Configuration?format=json") + settings('markPlayed', value=str(self._server['MaxResumePct'])) + def _authenticate(self): if not self.get_server() or not self.get_username(): @@ -223,10 +223,10 @@ class UserClient(threading.Thread): doutils.startSession() # Set _user and _server + self._set_user_server() # verify user access try: self._set_access() - self._set_user_server() except Warning: # We don't need to raise any exceptions pass