Fix old playerstate not being copied/reset correctly

This commit is contained in:
croneter 2018-03-11 18:57:00 +01:00
parent 93e3d42e23
commit 46adc51cf6

View file

@ -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')