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
Difference Between --filter and --file-filter Options
-
- Posts: 34
- Joined: 06 Jan 2022, 22:40
Re: Difference Between --filter and --file-filter Options
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:
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:
--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.
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/"
