From c1e3452bb6e84daab7be4f7c9fa237d627ec8b92 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 27 Dec 2025 22:13:32 +0100 Subject: [PATCH] lol --- radioPlayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radioPlayer.py b/radioPlayer.py index 7c41b04..feab647 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -273,7 +273,7 @@ class RadioPlayer: [module.progress(song_i, track, time.monotonic() - pr.started_at, pr.duration, end_time - pr.started_at) for module in self.modman.simple_modules if module] if (elapsed := time.monotonic() - start) < 1 and (remaining_until_end := end_time - time.monotonic()) > 0: time.sleep(min(1 - elapsed, remaining_until_end)) - prefetch(next_track) + if next_track: prefetch(next_track.path) i += 1 if not extend: song_i += 1