filter to include video and subtitle

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
johnnie
Posts: 4
Joined: 25 Aug 2016, 20:07

filter to include video and subtitle

Post by johnnie »

Option 1: Use Presets and use file.isVideo() as Include filter
Could you please explain how to write this into a preset. This is what I have now.
\\JOHNNYNAS/Multimedia/{plex}

I just want the video and subtitle file.

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

Re: filter to include video and subtitle

Post by rednoah »

:idea: "Format" and "Preset" are not the same thing!


1.
file.isVideo() refers to a Include file filter for custom Presets with predefined input folder. It defines which files are selected and loaded when a Preset is applied.


2.
The format cannot be used prevent files from being loaded, because the format is applied to file/object pairs after files have already been loaded and matched.

You could use the format to coerce files you don't want into a special location different from you video/subtitle files. That'd be a pretty ugly way of doing it though.
:idea: Please read the FAQ and How to Request Help.
johnnie
Posts: 4
Joined: 25 Aug 2016, 20:07

Re: filter to include video and subtitle

Post by johnnie »

Ref your item1
Yes that's what I want to do but I don't know how to write the script you are referring to

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

Re: filter to include video and subtitle

Post by rednoah »

Create a new Preset, select a input folder and add your file filter expression:
viewtopic.php?f=3&t=3228
:idea: Please read the FAQ and How to Request Help.
Post Reply