Fix rare KeyError for playback including trailers
This commit is contained in:
parent
6aa3e612cf
commit
9f82b05c11
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,8 @@ class KodiMonitor(Monitor):
|
|||
}
|
||||
Will NOT be called if playback initiated by Kodi widgets
|
||||
"""
|
||||
if 'id' not in data['item']:
|
||||
return
|
||||
old = state.OLD_PLAYER_STATES[data['playlistid']]
|
||||
if (not state.DIRECT_PATHS and data['position'] == 0 and
|
||||
not PQ.PLAYQUEUES[data['playlistid']].items and
|
||||
|
|
Loading…
Reference in a new issue