jprokos wrote: ↑07 Jan 2022, 16:59
How can this be useful in automation when we either have to include every show we want or exclude every show we don't?
--filter is not limited to those two specific approaches. But being able to exclude some series in advance is useful if you get consistent mismatches, e.g. old CSI episodes getting matched instead of new CSI episodes. It's useful for automation because you only have to write your include list / exclude list only once, and then get new episodes processed more reliably. And that include / exclude list could be auto-generated depending on your setup.
Personally, for automation, I'd recommend using
--filter in some sort of more generic way, where you include / exclude episodes based on some generic series properties, e.g. exclude shows from before 2010, exclude non-English shows, exclude certain genres, exclude shows with low popularity, exclude episodes with an airdate that is many years ago, etc. Depending on the kinds of mismatches you specifically encounter. Your
--filter is thus highly tailored to your specific use case and the content you expect to process. If you want to process both movies and episodes, then your
--filter expression must account for both cases.
You'll likely want run different
amc script commands with different specialized options for different use cases. That will require you to write your own shell script code to guess which is which, and that will be more or less easy depending on how much information your setup can pass along.
If you're
exclusively processing new episodes (i.e. you must configure your automated setup accordingly) then the age filter approach will work well:
rednoah wrote: ↑01 Aug 2012, 13:04
Advanced Fine-Tuning
You can
(and should) force Movie / Series / Anime mode by setting
--def ut_label, and you can further define your own
--filter rules to fine-tune matching to your exact needs, and avoid mismatches. For example, if one show is confused with another due to bad naming or missing data you can simply exclude the bad one, or if you only process recently aired episodes, then you could exclude episodes that have not aired recently from matching.
e.g. if you only process recently aired episodes you can virtually guarantee
100% auto-detection accuracy by adding simple filter rules such as these:
Code: Select all
--filter "age < 5" --def "ut_label=TV"
e.g. if you're a typical user, and find a simple age filter too restrictive, then this slightly augmented age filter rule might be the magic bullet that fixes all your problems, by applying the age filter only on newly aired episodes of currently airing shows
(but not older episodes of currently airing shows) and otherwise accepting all episodes of shows that are not currently airing:
Code: Select all
--filter "age < 5 || 5 <= model.age.min()" --def "ut_label=TV"
--filter rules are extremely flexible so more
complex scenarios, such as applying certain filters only for certain labels or files, is fully supported.