Difference Between --filter and --file-filter Options

Any questions? Need some help?
Post Reply
HarryMuscle
Posts: 34
Joined: 06 Jan 2022, 22:40

Difference Between --filter and --file-filter Options

Post by HarryMuscle »

Is there a difference between the --filter and --file-filter options? I've come across both in various posts and I'm just trying to figure out which one is the correct one to use.

Thanks,
Harry
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Difference Between --filter and --file-filter Options

Post by rednoah »

They're conceptually completely different. Please click on the link for each option in the manual and compare the examples:
https://www.filebot.net/cli.html



1.
--filter is for movie / episode objects. So Movie / Episode bindings only.
viewtopic.php?t=2127

e.g. match only episodes / movies from after 2000 so that when you process a file named doctor.who.1x01.mp4 only Doctor Who (2005) episodes are considered for matching and Doctor Who (1963) episodes are excluded from matching:

Code: Select all

--filter "y > 2000"


2.
--file-filter is for input files. So File bindings only.
viewtopic.php?t=4222

e.g. from the files and folders passed as input, select only mp4 files for processing:

Code: Select all

--filter "ext =~ /mp4/"
:idea: --file-filter is conceptually equivalent to find ... -exec filebot ... {} + in that it takes some input folders, selects files, and passes them on to filebot for processing.
:idea: Please read the FAQ and How to Request Help.
Post Reply