'Applies group settings to each item in series group and removes settings dict.'

def apply_group_options(self, config):

    config = self.make_grouped_config(config)
    for group_name in config:
        if (group_name == u'settings'):
            continue
        group_series = []
        if isinstance(group_name, str):
            try:
                qualities.Requirements(group_name)
                config[u'settings'].setdefault(group_name, {}).setdefault(u'target', group_name)
            except ValueError:
                pass
        group_settings = config[u'settings'].get(group_name, {})
        for series in config[group_name]:
            series_settings = {}
            if isinstance(series, dict):
                (series, series_settings) = list(series.items())[0]
            if (not series):
                log.warning(u'Series    config    contains    a    series    with    no    name!')
                continue
            if (not isinstance(series, str)):
                series = str(series)
            if isinstance(series_settings, str):
                series_settings = {u'path': series_settings}
            merge_dict_from_to(group_settings, series_settings)
            if isinstance(series_settings.get(u'watched'), str):
                (season, episode) = series_settings[u'watched'].upper().split(u'E')
                season = season.lstrip(u'S')
                series_settings[u'watched'] = {u'season': int(season), u'episode': int(episode)}
            if (u'enough' in series_settings):
                log.warning(u'Series    setting    `enough`    has    been    renamed    to    `target`.    Please    update    your    config.')
                series_settings.setdefault(u'target', series_settings[u'enough'])
            if ((u'timeframe' in series_settings) and (u'qualities' not in series_settings)):
                series_settings.setdefault(u'target', u'720p    hdtv+')
            group_series.append({series: series_settings})
        config[group_name] = group_series
    del config[u'settings']
    return config
