reset sync on file change

This commit is contained in:
j 2023-11-20 11:39:02 +00:00
parent 73774b5293
commit 8194783064

View file

@ -111,6 +111,7 @@ class Sync(Thread):
if self._pos != self.mpv.playlist_current_pos: if self._pos != self.mpv.playlist_current_pos:
self._pos = self.mpv.playlist_current_pos self._pos = self.mpv.playlist_current_pos
self.deviations = collections.deque(maxlen=10) self.deviations = collections.deque(maxlen=10)
self.need_to_sync = False
try: try:
track = self.mpv.playlist[self._pos] track = self.mpv.playlist[self._pos]
logger.error("%s %s", datetime.now(), track["filename"]) logger.error("%s %s", datetime.now(), track["filename"])