mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix server detection
In the event the connect module encountered an issue
This commit is contained in:
parent
0ed6c8e2b0
commit
d58763504a
1 changed files with 10 additions and 9 deletions
|
@ -99,16 +99,17 @@ class InitialSetup(object):
|
||||||
# Failed to identify server
|
# Failed to identify server
|
||||||
return True
|
return True
|
||||||
|
|
||||||
for server in current_state['Servers']:
|
elif 'Servers' in current_state:
|
||||||
if server['Id'] == settings('serverId'):
|
for server in current_state['Servers']:
|
||||||
# Update token
|
if server['Id'] == settings('serverId'):
|
||||||
server['UserId'] = settings('userId') or None
|
# Update token
|
||||||
server['AccessToken'] = settings('token') or None
|
server['UserId'] = settings('userId') or None
|
||||||
self.connectmanager.update_token(current_state['Servers'], server)
|
server['AccessToken'] = settings('token') or None
|
||||||
|
self.connectmanager.update_token(current_state['Servers'], server)
|
||||||
|
|
||||||
server_address = self.connectmanager.get_address(server)
|
server_address = self.connectmanager.get_address(server)
|
||||||
self._set_server(server_address, server)
|
self._set_server(server_address, server)
|
||||||
log.info("Found server!")
|
log.info("Found server!")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue