You've already forked RadioPlayer
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user