def fingerprint_task(log, task, session):
 items = (task.items if task.is_album else [task.item])
 for item in items:
  acoustid_match(log, item.path)

def fingerprint_task ( log , task , session ) : items = ( task . items if task . is_album else [ task . item ] ) for item in items : acoustid_match ( log , item . path )
fingerprint each item in the task for later use during the autotagging candidate search .