It's working now! Thank you. Sorry for all the problems with this thing.
Now that it's working I'm trying to figure out the include/exclude metadata thing.
I managed to get it to remove other tagcategories if it detects crossovers and that's working but now I'm stuck on this.
Here's the replace_metadatas used (I took out all the non-relevant ones):
Code:
replace_metadata:
site=>www.fanfiction.net=>FanFiction.net
site=>archiveofourown.org=>Archive of Our Own
category=>(\(Video Game\)|\([0-9]+\))=>
tagscategory=>^(?!.*(Half-Life|Portal|Mass Effect|Crossover)).*$=>Other
tagscategory=>^(.*)$=>Fanfiction.\1
tagscategory=>(Portal|Half-Life)=>Half-Life & Portal
include_metadata_post:
tagscategory==Crossover&&category==Crossover
exclude_metadata_post:
category==Crossover&&category_LIST==Half-Life, Portal
I have
this fic, and I'm trying to get it to result in:
Categories: Half-Life, Portal
Tags: Fanfiction.Half-Life & Portal
But instead it results in this:
Categories: Crossover, Half-Life, Portal
Tags: none
Furthermore, this also resulted in no tag whatsoever on other crossover fics that has either Half-Life or Portal in its category, e.g.
this one. Crossovers that contain neither of them still work as expected.
Changing either/both of the _post to _pre results in the Fanfiction.Crossover tag appearing in both test fics.
Changing the exclude (post) to tagscategory results in missing tags on both fics.
I noticed in the crossover thing it said this:
## Applied *after* category replace_metadata/include/exclude_metadata
So I wonder if that might be why it doesn't work.
Any suggestions?
EDIT: As well, I just noticed that
a fanfic from AO3 categorized as both "Mass Effect - All Media Types" and "Mass Effect Trilogy" got the Crossover category, even though I have a replace_metadata to transform it into a singular category.
Code:
category=>(^(?=.*Mass.Effect)(?!.*Mass Effect Trilogy).*|Mass Effect - All Media Types)=>Mass Effect Trilogy
(yes it's pretty kludgey-looking but it keeps me from getting "Mass Effect Trilogy Trilogy" as a category)
Confusing because the comment about replace_metadata indicates that this shouldn't happen.