You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 06:03:52 +01:00
next track logic
This commit is contained in:
@@ -71,7 +71,7 @@ def update_rds(track_name: str):
|
||||
return prt, ','.join(list(map(str, rtp)))
|
||||
|
||||
class Module(PlayerModule):
|
||||
def on_new_track(self, index: int, track: Track):
|
||||
def on_new_track(self, index: int, track: Track, next_track: Track | None):
|
||||
if track.official:
|
||||
rds_rt, rds_rtp = update_rds(track.path.name)
|
||||
logger.info(f"RT set to '{rds_rt}'")
|
||||
|
||||
Reference in New Issue
Block a user