Exclude files

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Khassou
Posts: 2
Joined: 09 Feb 2019, 16:44

Exclude files

Post by Khassou » 28 Apr 2019, 19:11

Hi,

first, thanks for this amazing tool.

I'm using a simple script that I run manualy on Windows to rename and move my files and I was wandering if it was possible to exclude certain files based on their name?
Typically all the Animes. Filebot is working just fine but sometimes it does not get the correct season and will mix things up. Since I want to automate the script execution (for instance every hour) via the Windows scheduler I would like to exclude the Anime that are automatically downloaded.
Since I'm taking everything from the same fansub team I was thinking maybe it is possible to exclude files that start with a certain string "[xxx]"?

Apologies in advance if the question was asked before, i've been looking around but could not find it.
Thanks

The script I'm using; fairly simple (though already complex for my skills):
filebot -script fn:amc --output "V:" --action move -non-strict "V:\_Torrents" --log-file amclog.log --def movieFormat="V:\Films\{ny}\{ny}" --def subtitles=en --def artwork=y --def unsorted=y --def clean=y --def deleteAfterExtract=y --def excludeList=amc.txt

User avatar
rednoah
The Source
Posts: 16129
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude files

Post by rednoah » 29 Apr 2019, 04:35

If you're using the amc script then you can use the --def ignore option.
:idea: Please read the FAQ and How to Request Help.

Khassou
Posts: 2
Joined: 09 Feb 2019, 16:44

Re: Exclude files

Post by Khassou » 01 May 2019, 10:33

Thanks for your answer.

I've tried adding the parameter below but it ignores everything. I pay attention to remove my test files from the exclude list so I don't understand the problem.

Code: Select all

--def ignore="[HorribleSubs]"
or

Code: Select all

--def ignore=[HorribleSubs]

User avatar
rednoah
The Source
Posts: 16129
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude files

Post by rednoah » 01 May 2019, 10:35

Note that the --def ignore option expects a regex and not a literal, so you can't use [...] unless you regex escape \[ and \] correctly:
https://regexr.com/

Here's an easy solution:

Code: Select all

--def ignore="HorribleSubs"
:idea: Please read the FAQ and How to Request Help.

Post Reply