Are the following iTunes keys available as Templates fields

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
abraxas
Junior Member
Junior Member
Posts: 3
Joined: Tue Jun 21, 2016 8:27 am

Are the following iTunes keys available as Templates fields

Post by abraxas »

I would like to adapt the Details/Classical template to display the Disc number and the track number in the disc. In iTunes XML file there are the following information :

<key>Disc Number
<key>Disc Count
<key>Track Number
<key>Track Count

There are keys for these in CDmedia ?
User avatar
Conor
Top Dog
Posts: 5336
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Are the following iTunes keys available as Templates fie

Post by Conor »

On the track level this is encoded into the position of the track and the key is [track:position] for track number. We do not have currently a disc key for the track, but I have added [track:disc] to the CDpedia beta version. So with the beta you can now do [track:disc].[track:position] in a template to get the info for the disc and the track. This of course has to be in the [tracksBegin] and [tracksEnd] loop.

The totals, "Disc Count" and "Track Count" key are [key:discs] and [key:numberOfTracks]. Here there is a slight difference in that Track Count in iTunes is disc based, while ours is based for the album.
Post Reply