0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

this was better

This commit is contained in:
Kuba
2025-11-01 12:03:27 +01:00
parent 31ce56fb0b
commit 2c70e3cce0

View File

@@ -219,6 +219,9 @@ def play_playlist(playlist_path):
start = time.time()
# do some module callback
total_uptime = time.time() - loop_start
if track.official: print(f"{track_name}: {format_time(total_uptime)} / {format_time(pr.duration)}")
elapsed = time.time() - start
remaining_until_end = end_time - time.time()
@@ -226,9 +229,6 @@ def play_playlist(playlist_path):
sleep_duration = min(1 - elapsed, remaining_until_end)
time.sleep(sleep_duration)
total_uptime = time.time() - loop_start
if track.official: print(f"{track_name}: {format_time(total_uptime)} / {format_time(pr.duration)}")
i += 1
if not extend: song_i += 1