From ce4ca71766ff73b60db4342cf8ddadf3558c8723 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 23 Aug 2018 13:33:08 +0200 Subject: [PATCH] Fix typos --- resources/lib/kodimonitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index ee077fa3..66f20dce 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -391,9 +391,9 @@ class KodiMonitor(xbmc.Monitor): pos = info['position'] if info['position'] != -1 else 0 LOG.debug('Detected position %s for %s', pos, playqueue) status = state.PLAYER_STATES[playerid] - kodi_id = data.get('id') - kodi_type = data.get('type') - path = data.get('file') + kodi_id = data['item'].get('id') if 'item' in data else None + kodi_type = data['item'].get('type') if 'item' in data else None + path = data['item'].get('file') if 'item' in data else None try: item = playqueue.items[pos] except IndexError: