You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
typo
This commit is contained in:
@@ -29,7 +29,7 @@ class PlayerModule:
|
|||||||
pass
|
pass
|
||||||
def imc_data(self, source: 'PlayerModule | ActiveModifier | PlaylistAdvisor', data: object, broadcast: bool) -> object:
|
def imc_data(self, source: 'PlayerModule | ActiveModifier | PlaylistAdvisor', data: object, broadcast: bool) -> object:
|
||||||
return None
|
return None
|
||||||
def progess(self, index: int, track: Track, elapsed: float, total: float):
|
def progress(self, index: int, track: Track, elapsed: float, total: float):
|
||||||
pass
|
pass
|
||||||
class PlaylistModifierModule:
|
class PlaylistModifierModule:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ def format_time(seconds):
|
|||||||
return f"{hours:02d}:{minutes:02d}:{secs:02d}"
|
return f"{hours:02d}:{minutes:02d}:{secs:02d}"
|
||||||
|
|
||||||
class Module(PlayerModule):
|
class Module(PlayerModule):
|
||||||
def progess(self, index: int, track: Track, elapsed: float, total: float):
|
def progress(self, index: int, track: Track, elapsed: float, total: float):
|
||||||
if track.official:
|
if track.official:
|
||||||
print(f"{os.path.basename(track.path)}: {format_time(elapsed)} / {format_time(total)}", end="\r", flush=True)
|
print(f"{os.path.basename(track.path)}: {format_time(elapsed)} / {format_time(total)}", end="\r", flush=True)
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ def play_playlist(playlist_path):
|
|||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
total_uptime = time.time() - loop_start
|
total_uptime = time.time() - loop_start
|
||||||
for module in simple_modules: module.progess(song_i, track, total_uptime, pr.duration)
|
for module in simple_modules: module.progress(song_i, track, total_uptime, pr.duration)
|
||||||
|
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
remaining_until_end = end_time - time.time()
|
remaining_until_end = end_time - time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user