mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix playback starting server connection instance
This commit is contained in:
parent
4b8ebf5656
commit
7e387a8652
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ class HTTP(object):
|
||||||
raise AttributeError("Request cannot be empty")
|
raise AttributeError("Request cannot be empty")
|
||||||
|
|
||||||
data = self._request(data)
|
data = self._request(data)
|
||||||
LOG.debug("--->[ http ] %s", json.dumps(data, indent=4))
|
LOG.info("--->[ http ] %s", json.dumps(data, indent=4))
|
||||||
retry = data.pop('retry', 5)
|
retry = data.pop('retry', 5)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -69,7 +69,7 @@ class Events(object):
|
||||||
elif mode =='play':
|
elif mode =='play':
|
||||||
|
|
||||||
item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get()
|
item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get()
|
||||||
Actions(params.get('server')).play(item, params.get('dbid'), playlist=params.get('playlist') == 'true')
|
Actions(server).play(item, params.get('dbid'), playlist=params.get('playlist') == 'true')
|
||||||
|
|
||||||
elif mode == 'playlist':
|
elif mode == 'playlist':
|
||||||
event('PlayPlaylist', {'Id': params['id'], 'ServerId': server})
|
event('PlayPlaylist', {'Id': params['id'], 'ServerId': server})
|
||||||
|
|
Loading…
Reference in a new issue