From 9f82b05c11026ce76f7cf3c1fe870e7b5eb8d399 Mon Sep 17 00:00:00 2001 From: Croneter Date: Wed, 28 Mar 2018 08:04:03 +0200 Subject: [PATCH] Fix rare KeyError for playback including trailers --- resources/lib/kodimonitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index be1d2255..409b3812 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -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