From 8b870ff1f8428c6d09c18c527f2eacfff3fc64bb Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:41:03 +0100 Subject: [PATCH] i think this makes it a very little bit more precise, either way 290 lines --- radioPlayer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index 8d0f6ef..804d1af 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -207,13 +207,12 @@ def play_playlist(playlist_path, starting_index: int = 0): ttw = pr.duration if track.fade_out: ttw -= cross_fade - loop_start = time.monotonic() - end_time = loop_start + ttw + end_time = pr.started_at + ttw while end_time >= time.monotonic(): start = time.monotonic() - for module in simple_modules: module.progress(song_i, track, time.monotonic() - loop_start, pr.duration, ttw) + for module in simple_modules: module.progress(song_i, track, time.monotonic() - pr.started_at, pr.duration, ttw) elapsed = time.monotonic() - start remaining_until_end = end_time - time.monotonic()