Fix slowness

This commit is contained in:
angelblue05 2018-10-04 23:38:55 -05:00
parent 586717c7a1
commit 2ec188341c
3 changed files with 15 additions and 10 deletions

View file

@ -68,7 +68,7 @@ class Events(object):
elif mode =='play':
item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get(10, {'Items': {}})
item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get()
Actions(server).play(item, params.get('dbid'), playlist=params.get('playlist') == 'true')
elif mode == 'playlist':

View file

@ -228,7 +228,7 @@ class Service(xbmc.Monitor):
LOG.debug("[ %s: %s ] %s", sender, method, json.dumps(data, indent=4))
if method == 'ServerOnline':
if data['ServerId'] is None:
if data.get('ServerId') is None:
window('emby_online.bool', True)
self.settings['auth_check'] = True