From 5f3f45e4040380296cffbd7053cee754b18efe3f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 8 Oct 2015 20:11:06 -0500 Subject: [PATCH] Fix playcount --- 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 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))