From 5163cc338a6b8dd14b31f714154102d0aabdf50c Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 1 May 2021 23:09:13 +0100 Subject: [PATCH] Don't load twice on init due to output hot reload. --- player.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/player.py b/player.py index 8186325..06918be 100644 --- a/player.py +++ b/player.py @@ -744,9 +744,8 @@ class Player: loaded_item = loaded_state["loaded_item"] if loaded_item: - self.logger.log.info("Loading filename: " + - str(loaded_item.filename)) - self.load(loaded_item.weight) + # No need to load on init, the output switch does this, as it would for regular output switching. + #self.load(loaded_item.weight) # Load may jump to the cue point, as it would do on a regular load. # If we were at a different state before, we have to override it now.