Filebot bash script and file globs
Posted: 13 Jun 2018, 01:54
Hi forum,
Trying to run filebot in a bash script and pass through a file glob i.e. Show.Name.S01*/*.mkv
File globs run fine if I run the command myself however running in a script I can only ever get it to match first option.
Since file globs are apparently passed into scripts as an array, the obvious solution is to loop over the array - however the only way I can see this working is spawning a new instance of filebot for every episode which increases processing time significantly, with multiple lookups etc. I'd rather it batch process.
Has anyone found a way around this? Can a file list be read-in from a temporary file? What other easy solutions may there be to get around this issue?
Thanks,
Joe
Trying to run filebot in a bash script and pass through a file glob i.e. Show.Name.S01*/*.mkv
File globs run fine if I run the command myself however running in a script I can only ever get it to match first option.
Since file globs are apparently passed into scripts as an array, the obvious solution is to loop over the array - however the only way I can see this working is spawning a new instance of filebot for every episode which increases processing time significantly, with multiple lookups etc. I'd rather it batch process.
Has anyone found a way around this? Can a file list be read-in from a temporary file? What other easy solutions may there be to get around this issue?
Thanks,
Joe