Page 1 of 1

if/then/else option to do nothing

Posted: 20 Dec 2018, 23:02
by howdymilsap
is there in a filebot expression to check for if a video is HD or 3D for example and then process if there is a match. If noo match, I want filebot to skip the file and move on.

I am working on processing a large drive of files and basically want to pull some out and re-process if they match specific criteria. I don't want to waste cycles on processing files unnecessarily.

Thanks.

Re: if/then/else option to do nothing

Posted: 21 Dec 2018, 12:04
by rednoah
Yes, if you use Presets then you can add an Includes filter. This way you can create a Preset that only loads specific files matching your includes filter into FileBot for subsequent processing.

e.g. check if file path contains "3D" and if video height is greater than 650 pixels:

Code: Select all

f =~ /3D/ || h > 650

Re: if/then/else option to do nothing

Posted: 21 Dec 2018, 21:34
by howdymilsap
is the preset capability only available in GUI or is it something that can be used from CLI as well?

edit:
Looks like the Preset capability is only in the GUI. My media server is remote and headless, so it will be a little bit of effort to use the GUI for this.

Re: if/then/else option to do nothing

Posted: 22 Dec 2018, 02:38
by rednoah
The new --file-filter option is roughly equivalent:

Code: Select all

--file-filter "f =~ /3D/ || h > 650"