From 73774b529326861cc2fa93ce95b4a98b81936cdb Mon Sep 17 00:00:00 2001 From: j Date: Mon, 20 Nov 2023 11:28:47 +0000 Subject: [PATCH] reset deviation on file change --- player/player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/player/player.py b/player/player.py index 43627fd..52fddb7 100755 --- a/player/player.py +++ b/player/player.py @@ -110,6 +110,7 @@ class Sync(Thread): self.adjust_position() if self._pos != self.mpv.playlist_current_pos: self._pos = self.mpv.playlist_current_pos + self.deviations = collections.deque(maxlen=10) try: track = self.mpv.playlist[self._pos] logger.error("%s %s", datetime.now(), track["filename"])