mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix playcount
This commit is contained in:
parent
06ad9ab18c
commit
5f3f45e404
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue