From 26eab0b08f75db5c084b4c31b95944b4881ff4f5 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Mon, 8 Jun 2020 15:10:20 +0200 Subject: [PATCH] Cleanup. --- modules/core/engine.py | 57 ------------------------------------------ 1 file changed, 57 deletions(-) diff --git a/modules/core/engine.py b/modules/core/engine.py index 44245a59..4f9e9f67 100644 --- a/modules/core/engine.py +++ b/modules/core/engine.py @@ -658,63 +658,6 @@ class SoundSystem(): # Channel Type - Filesystem # - # FIXME - # def playlist_activate(self, playlist, cue_in=0.0): - # """ - # Activates a new Playlist. - - # Args: - # new_entry (Playlist): The playlist to be played - # cue_in (Float): Start/cue-time of track (For some reason Liquidsoap doesn't acknowledge this yet) - - # Raises: - # (LQConnectionError): In case connecting to LiquidSoap isn't possible - # """ - - # # Grab the actual active entry - # # active_entry = self.scheduler.get_active_entry() - - # # Set default channel, if no previous track is available - # current_channel = self.active_channel[ChannelType.FILESYSTEM] - - # # if active_entry: - # # current_channel = active_entry.channel - - # try: - # # FIXME clearing creates some serious timing issues - # # To activate this feature we'd need some more sophisticated - # # Liquidsoap logic, such as >= 2 filesystem channels and - # # possiblities to pause pre-queued channels or cleaning them - # # after each completed schedule. - - # # self.enable_transaction() - # # #if active_entry: - # # #self.fade_out(active_entry) - # # res = self.playlist_clear(current_channel) - # # self.logger.info("Clear Queue Response: "+res) - # # self.disable_transaction() - - - # self.enable_transaction() - # self.mixer_channels_reload() - # # self.fade_in(playlist.entries[0]) - # # FIXME rework - # for new_entry in playlist.entries: - # if current_channel == new_entry.channel: - # self.activate_same_channel(new_entry, cue_in) - # else: - # self.activate_different_channel(new_entry, cue_in, current_channel) - # current_channel = new_entry.channel - - # self.disable_transaction() - - # # self.logger.critical("FIXME: Implement TrackService") - # #self.scheduler.update_track_service(new_entry) - # except LQConnectionError: - # # we already caught and handled this error in __send_lqc_command__, - # # but we do not want to execute this function further and pass the exception - # pass - def playlist_push(self, channel, uri): -- GitLab