'Refresh the list of available channels.'

def refresh_channel_list(self):

    new_channel_list = {}
    for channel in self._client.get_channels():
        new_channel_list[int(channel['index'])] = channel['name']
    self._channel_list = new_channel_list
