From 46adc51cf6d9ad6ffabd89a912103311b79faaa1 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 11 Mar 2018 18:57:00 +0100 Subject: [PATCH] Fix old playerstate not being copied/reset correctly --- resources/lib/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/player.py b/resources/lib/player.py index 17fa75e1..cb4d472e 100644 --- a/resources/lib/player.py +++ b/resources/lib/player.py @@ -31,7 +31,7 @@ def playback_cleanup(): for playerid in state.ACTIVE_PLAYERS: status = state.PLAYER_STATES[playerid] # Remember the last played item later - state.OLD_PLAYER_STATES[playerid] = dict(status) + state.OLD_PLAYER_STATES[playerid] = copy.deepcopy(status) # Stop transcoding if status['playmethod'] == 'Transcode': LOG.debug('Tell the PMS to stop transcoding')