Page 1 of 1

Exclude files

Posted: 28 Apr 2019, 19:11
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

Re: Exclude files

Posted: 29 Apr 2019, 04:35
by rednoah
If you're using the amc script then you can use the --def ignore option.

Re: Exclude files

Posted: 01 May 2019, 10:33
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]

Re: Exclude files

Posted: 01 May 2019, 10:35
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"

Re: Exclude files

Posted: 13 Sep 2020, 13:49
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!

Re: Exclude files

Posted: 13 Sep 2020, 13:51
by rednoah
--def ignore uses regular expressions:
https://regexr.com/

e.g.

Code: Select all

--def ignore="HorribleSubs|danish|720|2160"

Re: Exclude files

Posted: 13 Sep 2020, 13:57
by MickeMM
Perfect! I was trying with , and / but that dident work.
Thanks!