Metadata and Extended Attributes
Posted: 24 Oct 2012, 11:16
FileBot uses xattr (i.e. Extended Attributes / NTFS Alternate Data Streams) to store full metadata in file system attributes. These xattr are not to be confused with traditional tags that are embedded in the file content, but additional data streams stored in the file system for each file that are not part of the file itself. As such, xattr requires a filesystem that supports xattr, and xattr may be silently lost if files are moved to a filesystem that doesn't support xattr.

Disable this feature via the -no-xattr command-line flag:
or via the configuration file:
Configure FileBot to store xattr metadata in plain text files instead of filesystem xattr streams:
You can specify an absolute path to store xattr metadata for all files in one folder:
If you require cross-platform compatibility (e.g. write metadata from a Windows client to a SMB network share and then read that metadata from the local file system on the Linux host or vice versa) then using .xattr folders and files is highly recommended. Please read Optimizations for Remote File Systems for details.
Unset the net.filebot.xattr.store property to restore the original behaviour:
View or Clear Extended Attributes
with the filebot command-line tool:
View xattr for files:
Set xattr on files:
Unset xattr on files:
Clear xattr from files:
Prune orphaned .xattr folders where the corresponding media file no longer exists:
Attributes
- [xattr:net.filebot.metadata] Movie or Episode object (as to remember which file is which movie or episode for future reference)
- [xattr:net.filebot.filename] Original file name (as to remember the original file name for future reference)
- [xattr:net.filebot.mediainfo] MediaInfo table (as to remember the mediainfo table for quick access)

Usage
FileBot and other programs have the original filename and all episode / movie metadata available regardless how the file is named. Sure nice to have full metadata instantly / offline available should you need it. Please read Plain File Mode and Re-organize previously organized files using local xattr metadata for details and examples on how to re-match files to previously stored xattr metadata.Disable this feature via the -no-xattr command-line flag:
Shell: Select all
-no-xattr
Shell: Select all
filebot -script fn:properties --def useExtendedFileAttributes=false

Shell: Select all
filebot -script fn:properties --def net.filebot.xattr.store=.xattr

Shell: Select all
filebot -script fn:properties --def net.filebot.xattr.store=/path/to/.metadata


Shell: Select all
filebot -script fn:properties --def net.filebot.xattr.store=
View or Clear Extended Attributes
with the filebot command-line tool:
View xattr for files:
Shell: Select all
filebot -script fn:xattr /path/to/files
Shell: Select all
filebot -script fn:xattr /path/to/files --def name="value"
Shell: Select all
filebot -script fn:xattr /path/to/files --def net.filebot.mediainfo= net.filebot.mediainfo.mtime=
Shell: Select all
filebot -script fn:xattr /path/to/files --action clear
Shell: Select all
filebot -script fn:xattr /path/to/files --action prune