Compare commits

...

2 commits

Author SHA1 Message Date
j
8194783064 reset sync on file change 2023-11-20 11:39:02 +00:00
j
73774b5293 reset deviation on file change 2023-11-20 11:28:47 +00:00

View file

@ -110,6 +110,8 @@ 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)
self.need_to_sync = False
try:
track = self.mpv.playlist[self._pos]
logger.error("%s %s", datetime.now(), track["filename"])