You can use the
{plex} format to generate nice file paths:
e.g. clone TV series episode files into a new
{plex} file and folder structure:
Shell: Select all
filebot -rename -r "/input" --db TheMovieDB::TV -non-strict --action duplicate --output "/output" --format "{plex.id}"
https://www.filebot.net/cli.html
Forcing
Movie Mode via
--db TheMovieDB or
Episode Mode via
--db TheMovieDB::TV is
strongly recommended if you know in advance what kind of content you are processing.
{plex.id} works for both
Movie and
Episode objects.
You may remove the
--db option to let auto-detection take care of things if you cannot know in advance if you are processing movies or episodes.
If you're using custom formats for the first time, then you'll want to get started with the Format Editor in the FileBot Desktop application:
https://www.filebot.net/naming.html
EDIT:
First question you want to ask yourself when prototyping a new custom format for yourself: What do I want? How do you want to add the ID to the file path? Anything is possible.
{plex.id} will add the
{tmdb-12345} marker to the folder name. For movies, you can probably just add the ID marker to the file name at the end. For episodes, you might need to think about it a bit though, because just adding the series ID after the episode title is probably not what you want.