How to change format of $INFO[Player.time]?
#1
Question 
Hi All!
I've got an HTPC with iMon VFD embedded.
It works with XBMC just fine. BUT:
My VFD has only 16 characters of length.
I'm trying to show there current track time/duration like : 0:00:15/1:15:24
I've edited LCD.xml, so my line is:
Code:
<line>$INFO[Player.Time]/$INFO[Player.Duration]</line>
BUT xbmc returns time in format
Code:
hh:mm:ss
, so this line is 17 chars long and scrolling begins. It looks realy bad Sad.
Is there a way to elminate this leading 0 in player.time (anyway I cannot see any track that is more than 10 hours long)?
Reply
#2
See System.Time(format) in the InfoLabels (wiki) documentation.

If you have a few spare minutes it would be useful if you could write a small section on time formatting (just copy and paste that bit into a new section on the page) and then link the other time labels (Player.Time/Duration/TimeRemaining and same for MusicPlayer and VideoPlayer) to that section as well.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Do I understand right that all I need is
Code:
<line>$INFO[Player.Time(h:mm:ss)]/$INFO[Player.Duration(h:mm:ss)]</line>
?
If it can work this way that would be great! And definitely worth mention in docs, so I'll add that info as you've said.
Reply
#4
Try it out Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
How to change format of $INFO[Player.time]?0