From 3fd1dc66383a18e41a46bd20e6686feccd4c1b4a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 15 May 2018 02:10:57 -0500 Subject: [PATCH] Fix capture progress report --- resources/lib/kodimonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index e97e6701..5a16f2f0 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -113,7 +113,7 @@ class KodiMonitor(xbmc.Monitor): kodi_id = item.getDbId() 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'] kodi_id = item['id'] item_type = item['type']