Filter to Exclude Series

Any questions? Need some help?
Post Reply
carlyman
Posts: 4
Joined: 20 Sep 2016, 19:50

Filter to Exclude Series

Post by carlyman »

Looking for help on how to exclude a series from a potential match; I referenced the FAQ and Tips & Tricks, but unable to get it to work correctly.

Here is my command:

Code: Select all

#For Reference: --filter "!readLines('''/path/to/excludes.txt''').contains(n)"

filebot -script fn:amc --output "/volume1/Media" --action move --conflict auto "/volume1/Media/_new" --log-file _scripts/amcLog.txt --filter "!readLines('''/volume1/Media/_scripts/excludeSeries.txt''').contains(n)" --def excludeList=_scripts/amc_exclude.txt "ut_label=TV" >> /volume1/Media/_scripts/filebot_debug.txt 2>&1
Here's the saved log:

Code: Select all

Locking /volume1/@appstore/filebot/data/admin/logs/_scripts/amcLog.txt
Run script [fn:amc] at [Tue Sep 20 15:57:27 EDT 2016]
Parameter: excludeList = _scripts/amc_exclude.txt
Parameter: unsorted = n
Parameter: music = n
Parameter: artwork = y
Parameter: skipExtract = y
Parameter: clean = y
Parameter: movieFormat = Video/Movies/{n} ({y})/{n}
Parameter: seriesFormat = Video/TV/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}
Parameter: ut_label = TV
Argument: /volume1/Media/_new
Using excludes: /volume1/Media/_scripts/amc_exclude.txt (0)
Input: /volume1/Media/_new/Gotham.S03E01.720p.HDTV.X264-DIMENSION[rarbg]/Gotham.S03E01.720p.HDTV.X264-DIMENSION.mkv
Exclude: /volume1/Media/_new/Gotham.S03E01.720p.HDTV.X264-DIMENSION[rarbg]/RARBG.com.txt
Exclude: /volume1/Media/_new/Gotham.S03E01.720p.HDTV.X264-DIMENSION[rarbg]/gotham.301.720p-dimension.nfo
Group: [tvs:gotham] => [Gotham.S03E01.720p.HDTV.X264-DIMENSION.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Gotham]
Multiple options: Force auto-select requires non-strict matching: [Gotham, Gotham Girls, Gotham Comedy Live, Live at Gotham, The New Batman Adventures]
Clean clutter files and empty folders
Finished without processing any files
Failure (°_°)
My excludeSeries.txt contains the following:

Code: Select all

Gotham Girls
Gotham Comedy Live
Live at Gotham
The New Batman Adventures
Ultimately I'd like to use the following filter

Code: Select all

--filter "!readLines('''/path/to/excludes.txt''').contains(n) && (age < 7 || !model.any{ it.age < 7 })"
Thanks,
JC
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filter to Exclude Series

Post by rednoah »

Code: Select all

Force auto-select requires non-strict matching
You'll need to use the -non-strict option.

The --filter option is pretty useless in strict mode since the filter is applied per episode and allows you to force pretty much arbitrary file/episode matches that strict mode would veto.
:idea: Please read the FAQ and How to Request Help.
carlyman
Posts: 4
Joined: 20 Sep 2016, 19:50

Re: Filter to Exclude Series

Post by carlyman »

I figured that was going to be the response; I've just had bad luck with "-non-strict" in the past. I'll give it a whirl and set stronger filters to avoid a mismatch,

Thanks,
JC
carlyman
Posts: 4
Joined: 20 Sep 2016, 19:50

Re: Filter to Exclude Series

Post by carlyman »

...although wouldn't applying the filter give a smaller selection to try and "strict" match?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filter to Exclude Series

Post by rednoah »

--filter works on the per episode level. Strict mode aborts before your episode filter is applied because it can't figure out which episode list for which series it should be fetching (and in strict mode there can only be one to avoid series mismatch issues).

You're asking for a per series level kind-of-filter that is integrated with strict mode but unfortunately that is not supported.
:idea: Please read the FAQ and How to Request Help.
carlyman
Posts: 4
Joined: 20 Sep 2016, 19:50

Re: Filter to Exclude Series

Post by carlyman »

Got it...thanks for the explanation.
Post Reply