@pipeline.mutator_stage
def apply_choices(session, task):
 if task.skip:
  return
 if task.apply:
  task.apply_metadata()
  plugins.send('import_task_apply', session=session, task=task)
 task.add(session.lib)

@ pipeline . mutator_stage def apply_choices ( session , task ) : if task . skip : return if task . apply : task . apply_metadata ( ) plugins . send ( 'import_task_apply' , session = session , task = task ) task . add ( session . lib )
a coroutine for applying changes to albums and singletons during the autotag process .