View Single Post
Old 07-29-2013, 06:12 PM   #1581
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,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Jade Aislin View Post
I tested it under defaults, test site, and the original site (FFN, with an actual storyurl (http://www.fanfiction.net/s/7461968/1/)). The only one it worked under was FFN, where both the character (Alice K) and (Alice in Wonderland, 2010) converted to the way I wanted without extra code. Through some testing with the test site, it seems that the &&category is preventing the regex from working in any but active sites. Is this how it is supposed to work?
Conditional regex (with a && clause) works fine for me in [test1.com] and [defaults]--as long as the conditional clause is met, of course. This works for me:
Code:
[teststory:1002]
category_list:Alice in Wonderland\, 2010
characters_list:Bob W

[defaults]
replace_metadata:
 category=>Alice in Wonderland, 2010=>Alice in Wonderland (2010)
 characters=>Bob W=>Robert While&&category=>Alice in Wonderland \(2010\)
What are you putting in category_list in the teststory section? You don't want \(2010\), and if you put Alice in Wonderland, 2010 that will be come two entries "Alice in Wonderland" and "2010", you have to use Alice in Wonderland\, 2010.
JimmXinu is offline