reset deviation on file change
This commit is contained in:
parent
8db3a0f6e9
commit
73774b5293
1 changed files with 1 additions and 0 deletions
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue