You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 14:13:55 +01:00
this was better
This commit is contained in:
@@ -219,6 +219,9 @@ def play_playlist(playlist_path):
|
|||||||
start = time.time()
|
start = time.time()
|
||||||
# do some module callback
|
# 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
|
elapsed = time.time() - start
|
||||||
remaining_until_end = end_time - time.time()
|
remaining_until_end = end_time - time.time()
|
||||||
|
|
||||||
@@ -226,9 +229,6 @@ def play_playlist(playlist_path):
|
|||||||
sleep_duration = min(1 - elapsed, remaining_until_end)
|
sleep_duration = min(1 - elapsed, remaining_until_end)
|
||||||
time.sleep(sleep_duration)
|
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
|
i += 1
|
||||||
if not extend: song_i += 1
|
if not extend: song_i += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user