Groovy: Select all
args.files.each{ f ->
def xattr = f.dir / '.xattr' / f.name / 'net.filebot.metadata'
if (xattr.exists()) {
log.info xattr
log.fine xattr.text
f.xattr.'net.filebot.metadata' = xattr.text
}
}
Shell: Select all
filebot -script /path/to/import-xattr-folder.groovy /path/to/input
EDIT:

Shell: Select all
filebot -script fn:xattr /input --action import
e.g.
Shell: Select all
#!/bin/sh -xu
export MEDIA_FOLDER='/volume1/Media'
filebot -script fn:xattr "$MEDIA_FOLDER" --action import --log info
filebot -find "$MEDIA_FOLDER" --apply thumbnail refresh --log info
find "$MEDIA_FOLDER" -type d -name .xattr -exec rm -rv {} +