How to process only specific kinds of files?

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 19803
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

How to process only specific kinds of files?

Post by rednoah »

When dropping folders into FileBot, then FileBot will load all the media files in that folder (videos, subtitles, music, etc) but what if we only want to process video files but ignore all other files?


Option 1: FileBot Filter

Drop your folders into the Filter panel and let FileBot categorize files by their type, and then either drag-and-drop them where you want them to be, or use the Send to menu.

Image



Option 2: Use Windows Explorer or Mac Finder

Rather than dropping folders, just drop specific files instead. Search for the files you want (e.g. search for *.mkv in Windows Explorer or kind:video in Mac Finder) and then select all the files and drag them into FileBot.

Image



Option 3: Use Presets with Includes

Presets allow you to set a default folder from which files are loaded and file filter expressions that allow you to include or exclude files.

e.g. Includes: video files

Code: Select all

f.video
(requires FileBot r8431) e.g. Includes: files that are not *.jpg or *.png files and do not match *sample* or *trailer* in the file name:

Code: Select all

none{ ext =~ /jpg|png/ }{ fn.match(/sample|trailer/) }

Option 4: Start FileBot with --file-filter from Terminal

Power Users may use the --file-filter option to select specific files using a custom Groovy expression.

e.g. select only video files:

Code: Select all

filebot -rename -r /path/to/files --file-filter f.video


Option 5: Start FileBot with file arguments from Terminal

Power Users on Linux or macOS may prefer to use standard Linux tools to select files and pass them on to FileBot.

e.g. find *.mkv files and pass them on to the filebot call as arguments:

Code: Select all

find /path/to/files -type f -iname "*.mkv" -exec filebot -rename {} +
:idea: Please read the FAQ and How to Request Help.
Post Reply