View Single Post
Old 04-09-2021, 03:17 PM   #5755
Ascello
Enthusiast
Ascello began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
Quote:
Originally Posted by JimmXinu View Post
Without knowing the specific story and only speaking in the hypothetical, I can't actually test my suggestion.

But given what you asked, something like this will probably work:
Code:
[archiveofourown.org]
add_to_replace_metadata: 
 author=>^AAA$=>BBB&&genre==author: BBB
Limited to AO3, only matches the entire author string, and only when the exact string "author: BBB" is in metadata entry genre.

If you want more help with it, you'll need to provide story URLs.
The issue is that I don't have a story. I am working purely hypothetically right now. Aaand I am struggling, because I want to make it conditional on whether on not author is actually AAA, and for BBB to be able to vary as well depending on story, meaning that FFF would need to actually extract the content of the genre tag. I think I might be delving a little too deep into conditionals to actually make it work, but I am anything but an expert in coding.
Ascello is offline   Reply With Quote