From 8194783064352dfd2fd6c45b84a02083ed44999d Mon Sep 17 00:00:00 2001 From: j Date: Mon, 20 Nov 2023 11:39:02 +0000 Subject: [PATCH] reset sync on file change --- player/player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/player/player.py b/player/player.py index 52fddb7..0dbe6cb 100755 --- a/player/player.py +++ b/player/player.py @@ -111,6 +111,7 @@ class Sync(Thread): if self._pos != self.mpv.playlist_current_pos: self._pos = self.mpv.playlist_current_pos self.deviations = collections.deque(maxlen=10) + self.need_to_sync = False try: track = self.mpv.playlist[self._pos] logger.error("%s %s", datetime.now(), track["filename"])