You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 13:52:00 +01:00
advisor-less mode
This commit is contained in:
@@ -26,7 +26,10 @@ class Module(ActiveModifier):
|
||||
self.limit_tracks = not bool(self.limit_tracks)
|
||||
if self.limit_tracks: logger.info("Skipping tracks if they bleed into other times.")
|
||||
self.can_limit_tracks = self.limit_tracks
|
||||
def play(self, index: int, track: Track, next_track: Track | None):
|
||||
def play(self, index: int, track: Track | None, next_track: Track | None):
|
||||
if not track:
|
||||
raise NotImplementedError("This active modifer does not support advisor-less mode")
|
||||
|
||||
if not self.playlist: return (track, next_track), False
|
||||
|
||||
with self.file_lock:
|
||||
|
||||
Reference in New Issue
Block a user