def apply_acoustid_metadata(task, session):
 for item in task.imported_items():
  if (item.path in _fingerprints):
   item.acoustid_fingerprint = _fingerprints[item.path]
  if (item.path in _acoustids):
   item.acoustid_id = _acoustids[item.path]

def apply_acoustid_metadata ( task , session ) : for item in task . imported_items ( ) : if ( item . path in _fingerprints ) : item . acoustid_fingerprint = _fingerprints [ item . path ] if ( item . path in _acoustids ) : item . acoustid_id = _acoustids [ item . path ]
apply acoustid metadata to the tasks items .