Hi,
i was playinga round with the clean function, because I thought I could use it for my classical collection.
I have custom tags for [work], [work_key], [work_opus] and [work_opno]
At the moment I just combine them in a custom expression using the build list function, so they end up like:
Piano sonata no.3 C major op.2 Nr.3What I thought I could achieve was introducing a comma between [work_key] and [work_opus] so that it looks like
Piano sonata no.3 C major, op.2 Nr.3I now built an expression "[work], [work_key], [work_opus] [work_opno]" and used the clean function on it
the result is that I see the comma, even if the [work_opus] and the [work_opno] fields are not filled.
When I replace the comma by a hyphen, everything works out fine.
In the wiki it says:
Imagine the template without the Clean() function around it. [Artist] - [Album] /([Genre]/)
If used as an expression, this string, quite predictably, will return things such as: "AC/DC - Back In Black (Rock)", but, what if one or more of the specified fields contains no data? The result would be rather untidy, such as: "- Back In Black ()" if there were no [artist] or [genre] data.
Wrap the template inside the Clean() function to tidy these cases up, so, "- Back In Black ()" would become "Back In Black"
there's no mention about characters that can't be used.
What am I doing wrong? I also tried to escape the comma in the expression but without success. When I try to put [work_opus] in escaped brackets like in the example from the wiki it also works, but not with any other character I've tried.
Thanks for your help
Klaus