more debug info
This commit is contained in:
parent
e4793e816c
commit
ea83be1b7f
1 changed files with 10 additions and 0 deletions
|
@ -200,6 +200,11 @@ class Sync(Thread):
|
||||||
self.mpv.playlist_play_index(self.main.playlist_current_pos)
|
self.mpv.playlist_play_index(self.main.playlist_current_pos)
|
||||||
self.mpv.pause = False
|
self.mpv.pause = False
|
||||||
self.mpv.wait_until_playing()
|
self.mpv.wait_until_playing()
|
||||||
|
try:
|
||||||
|
track = self.mpv.playlist[self.mpv.playlist_current_pos]
|
||||||
|
logger.error("%s %s", datetime.now(), track["filename"])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.mpv.pause = True
|
self.mpv.pause = True
|
||||||
pos = self.main.time_pos + SYNC_JUMP_AHEAD
|
pos = self.main.time_pos + SYNC_JUMP_AHEAD
|
||||||
#print(pos, self.mpv.playlist_current_pos, self.mpv.time_pos)
|
#print(pos, self.mpv.playlist_current_pos, self.mpv.time_pos)
|
||||||
|
@ -212,6 +217,11 @@ class Sync(Thread):
|
||||||
#print(deviation, abs(deviation) - (time.time() - sync_timer))
|
#print(deviation, abs(deviation) - (time.time() - sync_timer))
|
||||||
if abs(deviation) - (time.time() - sync_timer) < 0:
|
if abs(deviation) - (time.time() - sync_timer) < 0:
|
||||||
self.mpv.pause = False
|
self.mpv.pause = False
|
||||||
|
try:
|
||||||
|
track = self.mpv.playlist[self.mpv.playlist_current_pos]
|
||||||
|
logger.error("%s %s %s", datetime.now(), track["filename"], pos)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
break
|
break
|
||||||
self.last_sync = time.time()
|
self.last_sync = time.time()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue