Trouble implementing --def ignore=[.]srt

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
dsua
Posts: 2
Joined: 03 Nov 2015, 20:41

Trouble implementing --def ignore=[.]srt

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
dsua
Posts: 2
Joined: 03 Nov 2015, 20:41

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

Post 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.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply