Need to exclude TV shows from CLI processing.

Any questions? Need some help?
Post Reply
ksims3
Posts: 2
Joined: 05 Nov 2016, 23:28

Need to exclude TV shows from CLI processing.

Post by ksims3 »

This is my current script.

Code: Select all

"C:\Program Files\FileBot\filebot.exe" -script fn:amc "Z:/Finished" --output "Z:/Videos" --log-file amc.log --action move --conflict skip -non-strict --def clean=y --def excludeList=amc.txt --def "movieFormat=Z:/Videos/{n.replaceAll(/:\?/,'-').replacePart('')} ({y})/{n.replaceAll(/:\?/,'-').replacePart('')} ({y}){' - part'+pi}{' ('+fn.match(/Extended/).upper()+')'}{' ('+fn.match(/Unrated/).upper()+')'}{' ('+fn.match(/proper/).upper()+')'} {'['+certification+']'}{genres.take(3)}[{vf}{'.'+source}{'.'+vc}{'.'+BITDEPTH+'Bit'}{'.'+af}{'.'+ac}{'.'+fn.match(/DD5.1/).upper()}{'.'+fn.match(/IMAX/).upper()}{'.'+GROUP}]" --def skipExtract=y --def deleteAfterExtract=n
I borrowed it from someone at /r/plex, and it has a lot of crap in it that I don't need - Which is fine. All I need is a way to exclude TV shows from being processed, because I use Sickbeard for them. I have it ignoring anything with tv/hdtv in the file name, but that doesn't always work - IS there a way to have it ignore something with SxxExx in its name, maybe? Or to just ignore processing of TV shows, period?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need to exclude TV shows from CLI processing.

Post by rednoah »

Have you tried the --def ignore option yet?
:idea: Please read the FAQ and How to Request Help.
ksims3
Posts: 2
Joined: 05 Nov 2016, 23:28

Re: Need to exclude TV shows from CLI processing.

Post by ksims3 »

Yeah. I don't know why it's not in that script - But I had it ignoring variations of HDTV and TV.. This doesn't work 100% of the time, becuase not every show has that in the name.

If there were something to put in the ignore section that would ignore SxxExx, and variationso f that - S00x00, and so on - I feel like that would work.. But I don't know how to put that into the syntax so that it would work.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need to exclude TV shows from CLI processing.

Post by rednoah »

Have you tried the --def ignore option with common SxE patterns yet?

e.g.

Code: Select all

--def ignore="S\d+E\d+|\d+x\d+"
@see http://regexr.com/
:idea: Please read the FAQ and How to Request Help.
Post Reply