mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-21 15:32:47 +00:00
Fix slowness
This commit is contained in:
parent
586717c7a1
commit
2ec188341c
3 changed files with 15 additions and 10 deletions
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue