Page 1 of 1

filter to include video and subtitle

Posted: 25 Aug 2016, 20:40
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

Re: filter to include video and subtitle

Posted: 26 Aug 2016, 04:31
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.

Re: filter to include video and subtitle

Posted: 26 Aug 2016, 10:35
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

Re: filter to include video and subtitle

Posted: 26 Aug 2016, 16:15
by rednoah
Create a new Preset, select a input folder and add your file filter expression:
viewtopic.php?f=3&t=3228