View Single Post
Old 05-18-2015, 01:19 PM   #167
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,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
...
Code:
replace_metadata:
 freeformtags=>^Protective Thor$=>Thor&&freeformtags=>Protectiveness
it does not work. And unlike with "genre", "Warnings", "ships" or similar, the term "freeformtags" does not turn green. Could you give me any suggestions?...
freeformtags and other site specific metadata keywords are not included in the color coding parser because they are technically also metadata that are defined in the ini file. So it doesn't turn green, but it also doesn't turn red.

You can't use the same metadata for the conditional key (the part after &&) and in the replacement key (the part before the first =>). If you try, the conditional is ignored. (Otherwise there would be an infinite recursion and it would crash.)

You could instead use a conditional that refers to a different metadata entry:
Code:
replace_metadata:
 freeformtags=>^Protective Thor$=>Thor&&genre=>Protectiveness
JimmXinu is offline   Reply With Quote