Page 1 of 1

Trouble implementing --def ignore=[.]srt

Posted: 03 Nov 2015, 20:52
by dsua
Hello everyone,

I've tried searching and experimenting with --def ignore=[.]srt but I just can't get it to work (tried moving --def around, adding quotes etc) Perhaps I'm using the wrong regex for what I want to do...I would like for filebot to scan>rename and ignore .srt files within the folder I'm scanning.

Code: Select all

 filebot -script fn:renall /download/folder -non-strict --db TheMovieDB --def ignore=[.]srt --output /out/ && filebot -script fn:cleaner /download/folder 
What am I missing?

Re: Trouble implementing --def ignore=[.]srt

Posted: 04 Nov 2015, 01:31
by rednoah
The --def options are specific for each script. The renall script does not support --def ignore at all, so it doesn't matter what you pass in. You're probably referring to the amc script which does have the --def ignore option.

On Linux/Mac it would be easy to just pass in the video files using find | xargs but I'm not sure if there's a Windows equivalent for that.

Re: Trouble implementing --def ignore=[.]srt

Posted: 04 Nov 2015, 16:35
by dsua
@rednoah Thank you for pointing me in the right direction...I'm using Linux and managed to get the following script doing what I want.

Code: Select all

find /download/folder -type f -name "*.srt" -exec rm -f {} \; && filebot -script fn:renall /download/folder -non-strict --db TheMovieDB --output /out/ && filebot -script fn:cleaner /download/folder
I tried using find | xargs to skip .srt files but I could not find a way to do so. I don't have much exposure to xargs so any guidance would be greatly appreciated.

Re: Trouble implementing --def ignore=[.]srt

Posted: 04 Nov 2015, 17:00
by rednoah
I'd probably look something like this:
viewtopic.php?f=8&t=2879&p=16177#p16177

Either figure out how to do negative -name matching, or just have find limit things to files that are bigger than a few hundred MBs.