Fix typos

This commit is contained in:
croneter 2018-08-23 13:33:08 +02:00
parent ac2a57b28d
commit ce4ca71766

View file

@ -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: