Exclude Media Types?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
jfoor
Posts: 12
Joined: 09 Jul 2015, 04:29

Exclude Media Types?

Post by jfoor »

Hello,

I've got your amc.groovy script running to process music files using ID3 Tags that you (rednoah) have helped me with.
I use Sonarr to process tv shows and I'd like to prevent filebot from copying/renaming anything other than music files as Sonarr works the way I'd like it to.

I've tried modifying amc.groovy but I don't understand 100% of it and invariably end up breaking it.
I've tried using --filter *.mp3 and --filter [.]mp3

Could you point me in the right direction? I'm sure it's something simple that I've just overlooked. I could always just use a separate torrent client for music only but that seems pointless if I can get this working the way I'd like.

Not sure if it matters but I'm running this on deluge with a shell script that executes amc.groovy as mentioned in your AMC post.

Thank you in advance.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Media Types?

Post by rednoah »

1.
--filter is NOT used for "filtering" files => viewtopic.php?f=3&t=2127

2.
You're looking for the --def ignore option => viewtopic.php?f=4&t=215
:idea: Please read the FAQ and How to Request Help.
jfoor
Posts: 12
Joined: 09 Jul 2015, 04:29

Re: Exclude Media Types?

Post by jfoor »

Got time to test this out and using --def ignore="([^\s]+(\.(?i)(mkv|avi|mp4))$)" is working so far.

I appreciate your help!
Post Reply