Are the following iTunes keys available as Templates fields

Any trouble you encounter with the Pedias, here's the place to ask for help.

Are the following iTunes keys available as Templates fields

Postby abraxas » Thu Jun 23, 2016 7:58 am

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 ?
abraxas
Junior Member
Junior Member
 
Posts: 3
Joined: Tue Jun 21, 2016 8:27 am

Re: Are the following iTunes keys available as Templates fie

Postby Conor » Fri Jun 24, 2016 6:22 am

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 [url][track:disc][/url] 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.
User avatar
Conor
Top Dog
 
Posts: 4769
Joined: Sat Jul 03, 2004 12:58 pm


Return to Support

cron