Page 1 of 1

Calling Exec Script Only Once Per Match

Posted: 13 Apr 2022, 19:30
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

Re: Calling Exec Script Only Once Per Match

Posted: 14 Apr 2022, 03:44
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}