View Single Post
Old 07-24-2023, 11:56 AM   #8715
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by culytera View Post
For example, I want "Dragon Age" to be kept when *Inquisition/Origins/II aren't one of the entries as well. If one of those 3 exists, I want "Dragon Age" excluded from the list. I've tested something similar with Mass Effect and Mass Effect: Andromeda/Mass Effect Trilogy and for some reason, my regex worked with Mass Effect but not Dragon Age.
FYI, I personally consider trying to normalize AO3 tags a lost cause. I'll help with individual issues that can be articulated and tested, but I'm not interested in it in general.

In this case, you can't use use category_LIST in conditionals for category, that would recurse. The debug output will warn you about it:
Spoiler:
Code:
FFF: INFO: 2023-07-24 10:45:43,659: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect) line(category=~^(Mass Effect)$&&category_LIST=~Mass Effect:? (Andromeda|Trilogy)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect: Andromeda) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect: Andromeda) line(category=~^(Mass Effect)$&&category_LIST=~Mass Effect:? (Andromeda|Trilogy)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect Trilogy) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect Trilogy) line(category=~^(Mass Effect)$&&category_LIST=~Mass Effect:? (Andromeda|Trilogy)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect: Andromeda) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
FFF: INFO: 2023-07-24 10:45:43,660: story.py(838): Skipping exclude_metadata_post key(category) value(Mass Effect Trilogy) line(category=~^(Dragon Age)$&&category_LIST=~Dragon Age:? (Inquisition|Origins|II)) to prevent infinite recursion.
JimmXinu is offline   Reply With Quote