From a6ce6ae8d2f828d855bea047aaedb1cfd2623bf4 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 3 Feb 2018 16:43:39 +0100 Subject: [PATCH] Fix KeyError for Kodi playerids --- resources/lib/state.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/state.py b/resources/lib/state.py index 1da14c2d..9e371232 100644 --- a/resources/lib/state.py +++ b/resources/lib/state.py @@ -91,15 +91,15 @@ ACTIVE_PLAYERS = [] # Kodi player states - here, initial values are set PLAYER_STATES = { + 0: {}, 1: {}, - 2: {}, - 3: {} + 2: {} } # The LAST playstate once playback is finished OLD_PLAYER_STATES = { + 0: {}, 1: {}, - 2: {}, - 3: {} + 2: {} } # "empty" dict for the PLAYER_STATES above PLAYSTATE = {