Fix typos
This commit is contained in:
parent
ac2a57b28d
commit
ce4ca71766
1 changed files with 3 additions and 3 deletions
|
@ -391,9 +391,9 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
pos = info['position'] if info['position'] != -1 else 0
|
pos = info['position'] if info['position'] != -1 else 0
|
||||||
LOG.debug('Detected position %s for %s', pos, playqueue)
|
LOG.debug('Detected position %s for %s', pos, playqueue)
|
||||||
status = state.PLAYER_STATES[playerid]
|
status = state.PLAYER_STATES[playerid]
|
||||||
kodi_id = data.get('id')
|
kodi_id = data['item'].get('id') if 'item' in data else None
|
||||||
kodi_type = data.get('type')
|
kodi_type = data['item'].get('type') if 'item' in data else None
|
||||||
path = data.get('file')
|
path = data['item'].get('file') if 'item' in data else None
|
||||||
try:
|
try:
|
||||||
item = playqueue.items[pos]
|
item = playqueue.items[pos]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|
Loading…
Reference in a new issue