mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Catch signin state error
This commit is contained in:
parent
ab0d5e24be
commit
0e36dd63ef
1 changed files with 4 additions and 1 deletions
|
@ -90,8 +90,11 @@ class InitialSetup(object):
|
||||||
|
|
||||||
if settings('server'):
|
if settings('server'):
|
||||||
current_state = self.connectmanager.get_state()
|
current_state = self.connectmanager.get_state()
|
||||||
for server in current_state['Servers']:
|
if current_state['State'] == STATE['ConnectSignIn']:
|
||||||
|
# Failed to identify server
|
||||||
|
return False
|
||||||
|
|
||||||
|
for server in current_state['Servers']:
|
||||||
if server['Id'] == settings('serverId'):
|
if server['Id'] == settings('serverId'):
|
||||||
# Update token
|
# Update token
|
||||||
server['UserId'] = settings('userId') or None
|
server['UserId'] = settings('userId') or None
|
||||||
|
|
Loading…
Reference in a new issue