View Single Post
Old 07-26-2012, 02:05 AM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,455
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by femgeek View Post
Yay, it worked! Minor note for anyone finding this thread later, you want:

Code:
sony_collection_name_template = '{category:||: }{value:re(\\.,: )}'
(The version with the single quotes throws up a syntax error.)
Ahh, silly me. I should have used double quotes to surround the template.
Code:
sony_collection_name_template = "{value:'re($, '\.', ': ')'}"
I prefer template program mode over single function mode because it is clearer what the values of the parameters are. But no never mind -- it is good you have something working.
chaley is offline   Reply With Quote