Shell: Select all
filebot -find /path/to/input --filter 'f.video && f.metadata' --apply '{ source, target -> target.dir.listFiles{ it.isDerived(f) }*.metadata = target.metadata }'

Groovy: Select all
f.video && f.metadata

Groovy: Select all
{ source, target ->
target.dir.listFiles{ it.isDerived(f) }*.metadata = target.metadata
}

Shell: Select all
filebot /path/to/input -script /path/to/copy-metadata.groovy
Groovy: Select all
args.files.each{ f ->
if (f.video && f.metadata) {
f.dir.listFiles{ it.isDerived(f) }*.metadata = f.metadata
}
}