0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
This commit is contained in:
Kuba
2025-11-01 18:03:06 +01:00
parent d5c9c9e5c3
commit 5f16b29011
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class PlayerModule:
pass
def imc_data(self, source: 'PlayerModule | ActiveModifier | PlaylistAdvisor', data: object, broadcast: bool) -> object:
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
class PlaylistModifierModule:
"""

View File

@@ -8,6 +8,6 @@ def format_time(seconds):
return f"{hours:02d}:{minutes:02d}:{secs:02d}"
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:
print(f"{os.path.basename(track.path)}: {format_time(elapsed)} / {format_time(total)}", end="\r", flush=True)