I'm not very experienced in the use of Filebot, so please bear with me!
I currently have a filebot command working to create TV show folder structures in an output folder based on filenames of files in the input folder:
Code: Select all
filebot -rename "C:\Users\xxxx\xxxx\STRM SAMPLE" --action copy --db file --format "C:\Users\xxxx\xxxx\TV SHOWS /{fn.before(/S\d+/)/fn.before(/S\d+/)} S{fn.match(/S(\d+)/).pad(2)}E{fn.match(/E(\d+)/).pad(2)}"
However, the problem is that the input folder contains a mix of movies and TV shows and so I get folder structures in the output folder for both. Since I only what the TV shows, I thought of using --file-filter in the command with a conditional expression "s !== 0" on the assumption that the Season Number would not be set when Filebot parsed a movie file name. So this is how I changed the command:
Code: Select all
filebot -rename "C:\users\xxxx\xxxx\STRM SAMPLE" --file-filter "s !== 0" --action copy --db file --format "C:\Users\xxxx\xxxx\TV SHOWS /{fn.before(/S\d+/)/fn.before(/S\d+/)} S{fn.match(/S(\d+)/).pad(2)}E{fn.match(/E(\d+)/).pad(2)}"
Code: Select all
"No files selected: [C:\Users\xxxx\xxxx\STRM SAMPLE]
* Consider using -r to process folders recursively
* Consider using --file-filter "true" to disable your file filter
Rename files using [Plain File]
Failed to identify or process any files".