mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Update user login
This commit is contained in:
parent
8319f2f0df
commit
644783fae5
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue