diff --git a/resources/lib/KodiMonitor.py b/resources/lib/KodiMonitor.py index fcf4f867..07821c91 100644 --- a/resources/lib/KodiMonitor.py +++ b/resources/lib/KodiMonitor.py @@ -108,7 +108,7 @@ class Kodi_Monitor( xbmc.Monitor ): jsondata = json.loads(data) try: - playcount = jsondata['playcount'] + playcount = jsondata.get('playcount') item = jsondata['item']['id'] type = jsondata['item']['type'] prop = utils.window('Played%s%s' % (type, item))