Hello. I have a question about metadata normalization (replace_metadata, etc).
Is there a valid syntax for adding data to a metakey with a conditional check on another key? Sort of moving/transforming metadata between keys?
Some of my searching here and my personal knowledge of programming implies that this is possible. However, I can't seem to make it work. Yes, it does work if I actually search for something particular that I know is there for a particular fic; but it mysteriously fails if the pattern matches anything at all, which is needed to blindly add data. I suppose I can manually add to each adapter file a magic number to search on, which is then removed via exclude_metadata_post. ...
Well, that seemed like it worked but failed the full test. I added a magic value to the plugins's adapter file, and replace_ can use that to search on before it's cleaned up via exclude_post. However, I'm not sure but it seems that replace_metadata cannot find temporary (data not already on disk, read from website, but then exclude_post before write to disk) conditionalkey values, which... is rather odd. Is this working as intended?
|