'Task handler for archives'

@plugin.priority(200)
def on_task_filter(self, task, config):

    if (isinstance(config, bool) and (not config)):
        return
    config = self.prepare_config(config)
    archive.rarfile_set_tool_path(config)
    for entry in task.entries:
        archive_path = entry.get(u'location', u'')
        if archive.is_archive(archive_path):
            entry.accept()
        else:
            entry.reject()
