Kodi Community Forum
Disk Number - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Disk Number (/showthread.php?tid=63259)



Disk Number - a2wistd2 - 2009-12-04

I am trying to figure out what to put for the Disk Number media tag.
I want it to show up when there is a multiple disk album, but not show up when its just one disk. So it'll show: Album Name [Disk 2/2] with multiple disks and just Album Name with just single disk.
I have my files tagged with Album Name and disk numbers labeled.


- jmarshall - 2009-12-04

Show up where exactly?

XBMC will already combine multi-disk albums into one entry anyway. Thus, the only time you see one disk at a time is if you are playing a song and it shows the album name. In this case you don't know how many disks there are in the set - you know only which disk the current song is on.

Cheers,
Jonathan


- Jezz_X - 2009-12-04

http://wiki.xbmc.org/?title=InfoLabels
MusicPlayer.DiscNumber
Disc Number of current song stored in ID tag info, also available are "MusicPlayer.offset(number).DiscNumber" offset is relative to the current playing item and "MusicPlayer.Position(number).DiscNumber" position is relative to the start of the playlist


- a2wistd2 - 2009-12-05

I am using Disk.Number but it only says '1' or '2', I don't get the "CD" part. That is what I'm looking for.


- Jezz_X - 2009-12-05

<label>$LOCALIZE[blah] $INFO[blah]</label>
or
<label>CD $INFO[blah]</label>


RE: Disk Number - vassie - 2013-04-02

Hello

Sorry to post in an old thread but I am looking to do the same

If I have an album that has two CD's then I populate the disc number field with 1/2, 2/2 etc, and albums with only one CD 1/1

When playing an album from my library, the main screen will show me the artist, album and disc number, I am trying to configure XBMC not to show the disc number if there is only one CD

Thank you


RE: Disk Number - phil65 - 2013-04-02

in your case <visible>!Stringcompare(ListItem.DiscNumber,1/1)</visible>


RE: Disk Number - vassie - 2013-04-03

(2013-04-02, 17:25)phil65 Wrote: in your case <visible>!Stringcompare(ListItem.DiscNumber,1/1)</visible>
Thank you, I'll give that a try


RE: Disk Number - vassie - 2013-05-10

Only just got round to trying this, what file do I need to edit?
Thank you