MinimServer Forum
Displayformatting $title to include the tracknumber - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Displayformatting $title to include the tracknumber (/showthread.php?tid=2486)



Displayformatting $title to include the tracknumber - jones - 19-06-2015 20:12

Hi Simon, all,

I'm trying to change the display format of the track title. I'd like it to include the tracknumber, so i can see on the display of my renderer which track number is playing.

I think the displayformat should be something like the following...

Title.displayFormat={$tracknumber^^. $Title^}

but...i get an error. "Tracknumber" is an incorrect tagname.
If I exchange "tracknumber" for "date", the syntax seems correct (but i get the date instead of the tracknumber in front of the tracktitle).

Anyone knows the tagname for the tracknumber? Or is this not possible?

Thanks. Kind regards,
Jones


RE: Displayformatting $title to include the tracknumber - simoncn - 19-06-2015 21:22

(19-06-2015 20:12)jones Wrote:  Hi Simon, all,

I'm trying to change the display format of the track title. I'd like it to include the tracknumber, so i can see on the display of my renderer which track number is playing.

I think the displayformat should be something like the following...

Title.displayFormat={$tracknumber^^. $Title^}

but...i get an error. "Tracknumber" is an incorrect tagname.
If I exchange "tracknumber" for "date", the syntax seems correct (but i get the date instead of the tracknumber in front of the tracktitle).

Anyone knows the tagname for the tracknumber? Or is this not possible?

Thanks. Kind regards,
Jones

You need to add Tracknumber to the itemTags property. This is mentioned in this section but not in this section. I have updated the User guide to clarify this.


RE: Displayformatting $title to include the tracknumber - jones - 20-06-2015 06:32

(19-06-2015 21:22)simoncn Wrote:  
(19-06-2015 20:12)jones Wrote:  Hi Simon, all,

I'm trying to change the display format of the track title. I'd like it to include the tracknumber, so i can see on the display of my renderer which track number is playing.

I think the displayformat should be something like the following...

Title.displayFormat={$tracknumber^^. $Title^}

but...i get an error. "Tracknumber" is an incorrect tagname.
If I exchange "tracknumber" for "date", the syntax seems correct (but i get the date instead of the tracknumber in front of the tracktitle).

Anyone knows the tagname for the tracknumber? Or is this not possible?

Thanks. Kind regards,
Jones

You need to add Tracknumber to the itemTags property. This is mentioned in this section but not in this section. I have updated the User guide to clarify this.

Thanks Simon, this works.