'Applies our include and exclude filters to the channel list and returns it'

def apply_channel_filters(self, channels):

    if self.only_channels:
        channels = [channel for channel in channels if any((fnmatch.fnmatchcase(channel, pattern) for pattern in self.only_channels))]
    if self.exclude_channels:
        channels = [channel for channel in channels if (not any((fnmatch.fnmatchcase(channel, pattern) for pattern in self.exclude_channels)))]
    return channels
