'Filter entries already accepted on previous runs.'

@plugin.priority(255)
def on_task_filter(self, task, config, remember_rejected=False):

    config = self.prepare_config(config)
    if (config is False):
        log.debug((u'%s    is    disabled' % self.keyword))
        return
    fields = config.get(u'fields')
    local = config.get(u'local')
    for entry in task.entries:
        values = []
        for field in fields:
            if (field not in entry):
                continue
            if ((entry[field] not in values) and entry[field]):
                values.append(str(entry[field]))
        if values:
            log.trace((u'querying    for:    %s' % u',    '.join(values)))
            found = search_by_field_values(field_value_list=values, task_name=task.name, local=local, session=task.session)
            if found:
                log.debug((u"Rejecting    '%s'    '%s'    because    of    seen    '%s'" % (entry[u'url'], entry[u'title'], found.value)))
                se = task.session.query(SeenEntry).filter((SeenEntry.id == found.seen_entry_id)).one()
                entry.reject((u'Entry    with    %s    `%s`    is    already    marked    seen    in    the    task    %s    at    %s' % (found.field, found.value, se.task, se.added.strftime(u'%Y-%m-%d    %H:%M'))), remember=remember_rejected)
