Companion Files

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 18986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Companion Files

Post by rednoah »

FileBot does support processing companion files alongside their primary media file.


1.
If companion files are derived-by-name and thus linked-by-name to the corresponding primary media file, then FileBot will automatically match them to the the same Movie or Episode object:

Code: Select all

Avatar.mp4
Avatar.xml
Avatar-poster.jpg
:arrow: Using {ny} as format:

Code: Select all

{ny}

Code: Select all

Avatar (2009).mp4
Avatar (2009).xml
Avatar (2009).jpg

:idea: In this case, companion files are match to the same Movie or Episode object as the primary media file, and so the format will likely produce the same destination path for each file. If you want to preserve custom tags, then you may need to copy them over from the original file path.

:arrow: Adding fn.match() to the format:

Code: Select all

{ny}{'.'+fn.match('poster')}

Code: Select all

Avatar (2009).mp4
Avatar (2009).xml
Avatar (2009).poster.jpg



2.
Alternatively, you can also use the Import companion files post-processing feature to simply copy along any files or folders that were left behind in the original folder:
Image
rednoah wrote: 14 Sep 2019, 20:35 Copy companion files (e.g. trailers, subtitles, artwork, etc) along from the original folder to the new location:

Code: Select all

--apply import
:idea: Please read the FAQ and How to Request Help.
Post Reply