Calling Exec Script Only Once Per Match

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
HarryMuscle
Posts: 34
Joined: 06 Jan 2022, 22:40

Calling Exec Script Only Once Per Match

Post by HarryMuscle »

Is there a argument that can be passed to the AMC script that would have it call the script specified via the exec argument only once for each match instead of calling it for each file? For example instead of calling it twice, once for the episode video file and once for the subtitles file, call it only once for each episode. If there is no argument that does this, is there an accepted approach that would accomplish this and work for movies and episodes, both single and multi part?

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

Re: Calling Exec Script Only Once Per Match

Post by rednoah »

FileBot will only execute once each unique command generated by your --def exec expression.

e.g. once:

Code: Select all

echo 1
e.g. once for each folder:

Code: Select all

echo {folder}
e.g. once for each file:

Code: Select all

echo {f}
e.g. once for each series or movie:

Code: Select all

echo {id}
e.g. once for each match:

Code: Select all

echo {object}
:idea: Please read the FAQ and How to Request Help.
Post Reply