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

multiple technical changes

This commit is contained in:
Kuba
2025-11-01 22:28:06 +01:00
parent 47c78c6efe
commit 09fd00bf68
3 changed files with 25 additions and 23 deletions

View File

@@ -29,7 +29,10 @@ class PlayerModule:
pass
def imc_data(self, source: 'PlayerModule | ActiveModifier | PlaylistAdvisor', data: object, broadcast: bool) -> object:
return None
def progress(self, index: int, track: Track, elapsed: float, total: float):
def progress(self, index: int, track: Track, elapsed: float, total: float, real_total: float):
"""
Real total and total differ in that, total is how much the track lasts, but real_total will be for how long we will play it for
"""
pass
class PlaylistModifierModule:
"""
@@ -45,7 +48,7 @@ class PlaylistAdvisor:
"""
Only one of a playlist advisor can be loaded. This module picks the playlist file to play, this can be a scheduler or just a static file
"""
def advise(self, arguments: str | None) -> str:
def advise(self, arguments: str | None) -> str | None:
"""
Arguments are the arguments passed to the program on startup
"""