if/then/else option to do nothing

Any questions? Need some help?
Post Reply
howdymilsap
Posts: 34
Joined: 14 Jul 2018, 17:22

if/then/else option to do nothing

Post by howdymilsap » 20 Dec 2018, 23:02

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.

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

Re: if/then/else option to do nothing

Post by rednoah » 21 Dec 2018, 12:04

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
:idea: Please read the FAQ and How to Request Help.

howdymilsap
Posts: 34
Joined: 14 Jul 2018, 17:22

Re: if/then/else option to do nothing

Post by howdymilsap » 21 Dec 2018, 21:34

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.

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

Re: if/then/else option to do nothing

Post by rednoah » 22 Dec 2018, 02:38

The new --file-filter option is roughly equivalent:

Code: Select all

--file-filter "f =~ /3D/ || h > 650"
:idea: Please read the FAQ and How to Request Help.

Post Reply