def get_channels(self):
        """Save the list of channels"""

        self.logger.debug("Getting the list of channels...")

        new_channels = []
        new_id_by_channel = {}

        for (channel, id) in radioDns.get_all_channels():
            new_channels.append(channel)
            new_id_by_channel[channel] = id

        with self.channels_lock:
            self.channels = new_channels
            self.id_by_channel = new_id_by_channel
            self.logger.debug("Got new list of channels ! %s; %s" % (self.channels, self.id_by_channel))
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/fallback.py/Fallback.get_channels/original