Fix capture progress report

This commit is contained in:
angelblue05 2018-05-15 02:10:57 -05:00
parent 1f9f4ed2b7
commit 3fd1dc6638

View file

@ -113,7 +113,7 @@ class KodiMonitor(xbmc.Monitor):
kodi_id = item.getDbId() kodi_id = item.getDbId()
item_type = item.getMediaType() item_type = item.getMediaType()
if kodi_id is None or int(kodi_id) == -1 or 'item' in data and data['item'].get('id') != kodi_id: if kodi_id is None or int(kodi_id) == -1 or 'item' in data and 'id' in data['item'] and data['item']['id'] != kodi_id:
item = data['item'] item = data['item']
kodi_id = item['id'] kodi_id = item['id']
item_type = item['type'] item_type = item['type']