mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge dictionary assignment with declaration
This commit is contained in:
parent
52525d4725
commit
bfc18e7d4b
1 changed files with 6 additions and 6 deletions
|
@ -340,13 +340,13 @@ class ConnectionManager(object):
|
||||||
self.config.data['auth.server=id'] = server['Id']
|
self.config.data['auth.server=id'] = server['Id']
|
||||||
self.config.data['auth.ssl'] = options.get('ssl', self.config.data['auth.ssl'])
|
self.config.data['auth.ssl'] = options.get('ssl', self.config.data['auth.ssl'])
|
||||||
|
|
||||||
result = {
|
|
||||||
'Servers': [server]
|
|
||||||
}
|
|
||||||
|
|
||||||
result['State'] = CONNECTION_STATE['SignedIn'] if server.get('AccessToken') else CONNECTION_STATE['ServerSignIn']
|
|
||||||
# Connected
|
# Connected
|
||||||
return result
|
return {
|
||||||
|
'Servers': [server],
|
||||||
|
'State': CONNECTION_STATE['SignedIn']
|
||||||
|
if server.get('AccessToken')
|
||||||
|
else CONNECTION_STATE['ServerSignIn'],
|
||||||
|
}
|
||||||
|
|
||||||
def _update_server_info(self, server, system_info):
|
def _update_server_info(self, server, system_info):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue