Exclude files

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

Exclude files

Post by Khassou »

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: 22898
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude files

Post by rednoah »

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 »

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: 22898
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude files

Post by rednoah »

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.
MickeMM
Posts: 44
Joined: 03 Apr 2019, 10:52

Re: Exclude files

Post by MickeMM »

If i want to ignore more, how should i write then?

I want to ignore folders "danish, 720 and 2160"

--def ignore="HorribleSubs"

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

Re: Exclude files

Post by rednoah »

--def ignore uses regular expressions:
https://regexr.com/

e.g.

Code: Select all

--def ignore="HorribleSubs|danish|720|2160"
:idea: Please read the FAQ and How to Request Help.
MickeMM
Posts: 44
Joined: 03 Apr 2019, 10:52

Re: Exclude files

Post by MickeMM »

Perfect! I was trying with , and / but that dident work.
Thanks!
Post Reply