Fix playback starting server connection instance

This commit is contained in:
angelblue05 2018-09-23 21:43:48 -05:00
parent 4b8ebf5656
commit 7e387a8652
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class HTTP(object):
raise AttributeError("Request cannot be empty")
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)
while True:

View file

@ -69,7 +69,7 @@ class Events(object):
elif mode =='play':
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':
event('PlayPlaylist', {'Id': params['id'], 'ServerId': server})