02-24-2017, 08:02 AM
I always like a challenge. This should work:
%ARTISTS%%ALBUMS:${ARTISTS:, }${VALUE}%%KEYS:${ALBUMS:, }${VALUE}%%SOURCE_TYPES:${KEYS:, }${VALUE}%%CUSTOM:${SOURCE_TYPES:, }${VALUE}%
That's not the prettiest solution though. What I really should do is add support for a conditional separator. The separator would only be visible if text was present both before and after it. This wouldn't be too hard to add, but I would need a way to distinguish a conditional separator from one that users want visible. I think some people want to see if a field is empty for a song, so I need to support both. One thought is that conditional separators could be specified using a designator such as [,] or ${,} or %,%. Then the format string would have just been:
%ARTISTS%[,]%ALBUMS%[,]%KEYS%[,]%SOURCE_TYPES%[,]%CUSTOM%
What do people think about that?
%ARTISTS%%ALBUMS:${ARTISTS:, }${VALUE}%%KEYS:${ALBUMS:, }${VALUE}%%SOURCE_TYPES:${KEYS:, }${VALUE}%%CUSTOM:${SOURCE_TYPES:, }${VALUE}%
That's not the prettiest solution though. What I really should do is add support for a conditional separator. The separator would only be visible if text was present both before and after it. This wouldn't be too hard to add, but I would need a way to distinguish a conditional separator from one that users want visible. I think some people want to see if a field is empty for a song, so I need to support both. One thought is that conditional separators could be specified using a designator such as [,] or ${,} or %,%. Then the format string would have just been:
%ARTISTS%[,]%ALBUMS%[,]%KEYS%[,]%SOURCE_TYPES%[,]%CUSTOM%
What do people think about that?