'Decides whether we should look for next season based on whether we found/accepted any seasons.'

def on_search_complete(self, entry, task=None, identified_by=None, **kwargs):

    with Session() as session:
        series = session.query(Series).filter((Series.name == entry[u'series_name'])).first()
        latest = get_latest_season_pack_release(series)
        latest_ep = get_latest_episode_release(series, season=entry[u'series_season'])
        if entry.accepted:
            if ((not latest) and latest_ep):
                log.debug(u'season    lookup    produced    an    episode    result;    assuming    no    season    match,    no    need    to    rerun')
                return
            else:
                log.debug(u'%s    %s    was    accepted,    rerunning    to    look    for    next    season.', entry[u'series_name'], entry[u'series_id'])
                if (not any(((e.get(u'series_season') == (latest.season + 1)) for e in self.rerun_entries))):
                    self.rerun_entries.append(self.search_entry(series, (latest.season + 1), task))
                task.max_reruns += 1
                task.rerun(plugin=plugin_name, reason=u'Look    for    next    season')
        elif (latest and (not latest.completed)):
            return
