Kodi Community Forum
LCD Player.Time - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: LCD Player.Time (/showthread.php?tid=103031)



LCD Player.Time - zzattack - 2011-06-07

I think it would be useful to display Player.Time as 0:12:34 instead of the current 00:12:34. Very few content is over 10 hours and saving a character on this seems useful for many 16x2 LCDs. Alternatively, in order to not break current behaviour, it might be nice to not replace the current Player.Time behaviour but instead introduce (say) Player.Time5 (for h:mmConfuseds) and Player.Time3/Player.Time4 (mConfuseds/mmConfuseds, for audio tracks). If this length doesn't fit the contents' length a fallback using the shortest format that fits could be used.


- pieh - 2011-06-07

Here are time formats You can already use:
Code:
Player.Time(hh)
Player.Time(mm)
Player.Time(ss)
Player.Time(hh:mm)
Player.Time(mm:ss)
Player.Time(hh:mm:ss)



- zzattack - 2011-06-07

Thanks, that's pretty nice. Any chance of the format h:mmConfuseds being added?


- Jezz_X - 2011-06-07

that should also work


- zzattack - 2011-06-07

Jezz_X Wrote:that should also work
Hmm, that doesn't appear to be the case. I can confirm that the mmConfuseds format works fine but the h:mmConfuseds shows up as hh:mmConfuseds.

BTW: is this usage documented anywhere? If not I'd be glad to add it to the wiki.


- Jezz_X - 2011-06-07

Its all marked here http://wiki.xbmc.org/?title=InfoLabels but the extra stuff is in system.time but applies to anything with .time


- zzattack - 2011-06-07

Jezz_X Wrote:Its all marked here http://wiki.xbmc.org/?title=InfoLabels but the extra stuff is in system.time but applies to anything with .time
Ok thanks, any chance of this h:mmConfuseds format being added?
edit: Patch submitted @ http://trac.xbmc.org/ticket/11617