2006-10-08, 18:09
Currently I’m trying to map Disc-Number of played audio file to a new Info-Label in GUIInfoManager. I added
and count up all following MUSICPLAYER_* entries. I extended TranslateSingleString with and GetMusicLabel with
I added some test MP3-files to database and used $INFO[MusicPlayer.DiscNumber] in skin to fetch disc information.
But it does not work as expected . I get no result… At the moment I’m stuck at this point.
Does anyone have an idea where my error is?
Code:
#define MUSICPLAYER_DISC_NUMBER 209
Code:
else if (strTest.Equals("musicplayer.discnumber")) ret = MUSICPLAYER_DISC_NUMBER;
Code:
case MUSICPLAYER_DISC_NUMBER:
{
CStdString strDisc;
if (tag.Loaded() && tag.GetDiscNumber() > 0)
{
strDisc.Format("%02i", tag.GetDiscNumber());
return strDisc;
}
}
break;
I added some test MP3-files to database and used $INFO[MusicPlayer.DiscNumber] in skin to fetch disc information.
But it does not work as expected . I get no result… At the moment I’m stuck at this point.
Does anyone have an idea where my error is?