New Test Version Posted
2020-07-06
- New site: chireads.com -- Thanks, Kolbo!
- Move add_category_when_multi_category after dedup'ing so consolidated category values don't count.
Quote:
Originally Posted by ownedbycats
I'm a bit confused on when exactly the add_category_when_multi_category is supposed to apply. The comment says it applies after all the replaces/include/exclude that affect categories, but in that case I'm not sure why it still applies when the regex results in just one category.
|
This was a legitimate problem. I've moved
add_category_when_multi_category after dedup'ing now.
Quote:
Originally Posted by ownedbycats
As well, the exclude_metadata thing I was trying to do seems to not work because of the crossover adding itself again after crossover category was excluded. Either that, or it not properly detecting the category_list.
|
Functioning as intended.
add_category_when_multi_category is applied after replace/include/exclude, so naturally you can't use exclude on
category to filter out what was added.
You now, after all of this, want to remove Crossover from
some combinations of multiple categories? Whatever.
You might experiment with a) operating on category_LIST to replace those specific multiple category combos with one string; or b) creating a new metadata entry that includes category--probably more than one with .NOREPL versions to separate far enough to not be recursive--and use that instead of category.
Regardless, it's a bridge too far for me; I'm done helping with that.
Quote:
Originally Posted by ownedbycats
Is there any debug thing I can run to see how exactly the metadata is processing?
|
No. I add debug output when I want it and 99.9% of the time it's so overfull from all the recursive metadata processing that even I can't follow it.
Quote:
Originally Posted by ownedbycats
ANOTHER EDIT: I ran it again on my first test fic. The log gave me something about infinite recursion. I've attached the log.
|
Code:
... Skipping exclude_metadata_pre key(category) value(Half-Life) line(category==Crossover&&category_LIST==Half-Life, Portal) to prevent infinite recursion.
... Skipping exclude_metadata_pre key(category) value(Portal (Video Game)) line(category==Crossover&&category_LIST==Half-Life, Portal) to prevent infinite recursion.
Functioning as intended. A
category affecting line can't have a conditional that uses
category or any other value derived from
category (excepting
category.NOREPL) because it would cause an infinite recursion and error out the entire download.