Page 1 of 1

Multiple external *.groovy script files

Posted: 04 Oct 2021, 16:49
by MilkMaNY
I'm attempting to follow the approach in this post, and separate my format script into multiple .groovy files. The problem occurs when I attempt to paste multiple files into the Formal field, single file works fine. Screenshots below show it working with one file, but not working with the same file listed twice.
Image

Image
I'm guessing I need some sort of delimiter between the files, but couldn't figure out what it is. Would appreciate any help on this.

Re: Multiple external *.groovy script files

Posted: 04 Oct 2021, 17:29
by rednoah
rednoah wrote: 24 May 2019, 11:27 (requires FileBot r8757) Use @format.groovy syntax to include external format expression code at compile time:

Code: Select all

@/path/to/TargetFolder.groovy
@/path/to/MovieNaming.groovy
@/path/to/MediaInfoTags.groovy
This feature requires FileBot r8757 or higher, i.e. the latest beta. FileBot 4.9.4 (current stable release) only accepts a single @file as format.

Re: Multiple external *.groovy script files

Posted: 04 Oct 2021, 18:07
by MilkMaNY
Thanks, I'll give the beta a shot

Re: Multiple external *.groovy script files

Posted: 05 Oct 2021, 12:32
by rednoah
You can always make your own build script to combine a set of individual files, and then use that auto-generated file as single @format.groovy line in your format:

Code: Select all

cat A.groovy B.groovy C.groovy > ABC.groovy