diff --git a/src/aura_engine/scheduling/scheduler.py b/src/aura_engine/scheduling/scheduler.py index 700ce7abff4c178d65d739a3ec2aed3eb52bb6ca..68731452569f03ece2ceba8db7c6cd7480c9a97d 100644 --- a/src/aura_engine/scheduling/scheduler.py +++ b/src/aura_engine/scheduling/scheduler.py @@ -391,6 +391,7 @@ class AuraScheduler(threading.Thread): msg = "The FFWD [>>] range exceeds the length of the item. \ Drink some tea and wait for the sound of the next item." self.logger.info(msg) + return else: # Preload and play active item AuraScheduler.PlayCommandClass(self.engine, [active_item]) @@ -423,23 +424,6 @@ class AuraScheduler(threading.Thread): self.logger.critical(f"Unknown content type for item {active_item}") return - def get_active_playlist(self): - """ - Retrieve the currently playing playlist. - - If there is no specific playlist for this timeslots, then any "default playlist" available - on the timeslot or show level, is returned. - - Returns: - (Dict, Playlist): A dictionary holding the playlist type and the resolved playlist - - TODO refactor - """ - timeslot = self.timetable.get_current_timeslot() - if timeslot: - return self.resolve_playlist(timeslot) - return (-1, None) - def resolve_playlist(self, timeslot: Timeslot): """ Retrieve the planned or default playlist for the given timeslot.