Skip to main content

Topic: foo_upnp—How to split tree nodes by a different rule, e.g. 1st letter? (Read 1021 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
foo_upnp—How to split tree nodes by a different rule, e.g. 1st letter?
I'd like to have my "by artist" view split by first letter, however the setting under Preferences>Tools>UPnP>Server>Content only allows for this setting to be universally applied via item count, which would screw up my use case of listing all songs by genre then shuffling between them, thus harshing my mellow. Is there a way to set split tree node by first letter by view, instead of item count?

Many thanks in advance is you have ideas to try.

  • BenB
  • [*][*][*][*][*]
foo_upnp—How to split tree nodes by a different rule, e.g. 1st letter?
Reply #1
The problem is that you cannot manipulate constructions such as %<artist>% with title formatting, so if you want multi-value artist tagss split in that way, the only option is to use the built-in setting.

On the other hand, if the artist values in your tags are all single-value, you can create a spec containing something as simple as one of the following:

Code: [Select]
$left(%artist%,1)
$left($stripprefix(%artist%),1)

You can also use those for multi-value artist tags, but the drawback is that if your next tier has %<artist>%, then all artists in a multi-valued tag will be listed under the first letter of the first value, e.g. if artist=John Doe; Fred Bloggs, then it will return

Code: [Select]
J
  Fred Bloggs
  John Doe

not

Code: [Select]
F
  Fred Bloggs
J
  John Doe
  • Last Edit: 20 January, 2013, 06:04:18 PM by BenB