INTERACT FORUM
More => Old Versions => Media Center 16 (Development Ended) => Topic started by: dlmax63 on May 19, 2011, 05:44:03 pm
-
I'm obviously not looking in the right places in the wiki, but...
How do I get a left or right parenthesis [ "(" or ")" ] to work in a file naming expression?
For example:
if the expression is "if(isequal([MySeries],unknown,8),[album] - (VA) - [name],[myseries] - [myseriesvolume] - (VA) - [name])"
for a record with "MySeries" populated: "~\0 - CD,Guitar Rock - 1968-1969 - (VA) - CD).jpg"
for a record without "MySeries" populated: "~\1 - folder,Unknown MySeries - Unknown MySeriesVolume - (VA) - folder).jpg"
if the expression is "if(isequal([MySeries],unknown,8),[album] - VA - [name],[myseries] - [myseriesvolume] - VA - [name])"
for a record with "MySeries" populated: "~\Guitar Rock - 1968-1969 - VA - CD.jpg"
for a record without "MySeries" populated: "~\Animal House - VA - folder.jpg"
-
From marko's excellent Expression Language (http://wiki.jriver.com/index.php/Media_Center_expression_language#Overview) wiki topic...
Occasionally, you will find that you want a space, or parenthesis character to be treated literally as part of your instructions, rather than expression syntax, and in these cases, the character is "escaped" by using a preceding forward slash.
-
Thanks, rick.ca!
I tried ', ", & and % to no results. / did the trick.
Thanks again