Fix playcount

This commit is contained in:
angelblue05 2015-10-08 20:11:06 -05:00
parent 06ad9ab18c
commit 5f3f45e404

View file

@ -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))