[Script] Custom Rules for Featurettes, Extras, etc
Posted: 15 Feb 2026, 18:46
This post-processing script will process companion files based on custom code:
This sample code
is work in progress. Please share sample file names for your featurettes, extras, trailers, etc and how you would like to organise them, so that we can add more rules to the sample code above and make things work better out-of-the-box for everyone.
Groovy: Select all
{ source, target ->
source.dir.listFiles{ f ->
// select Special Features and move them to a Featurettes subfolder (e.g. Jaws-SF_04_DS_Outtakes_t03.mkv)
if (f.video && f.name.findWordMatch(/SF/)) {
// move, copy, symlink, hardlink, etc
action(f, target.dir / 'Featurettes' / f.name)
}
}
}