Solved duration format - remove padding - 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: Solved duration format - remove padding (/showthread.php?tid=201078) |
duration format - remove padding - User 156625 - 2014-07-31 List item.duration returns the duration in the format mms. Is it possible to remove the padding on minutes? I.e. Display three minutes and 1 second as 3.01 instead of 03.01? RE: duration format - remove padding - Hitcher - 2014-07-31 With a lot of variables yes. RE: duration format - remove padding - User 156625 - 2014-07-31 Would you mind sharing the method hitcher or is it so slow its not really viable? RE: duration format - remove padding - Hitcher - 2014-07-31 PHP Code: <variable name="Duration"> Good luck. RE: duration format - remove padding - User 156625 - 2014-07-31 lol! Thanks... Nothing a spreadsheet can't handle help generate I s'ppose.... Would this also work for player.time and player.duration used on a progress bar? RE: duration format - remove padding - User 156625 - 2014-07-31 got it working - only 1800 lines for duration, player time and player duration, but nice and easy in excel. Thanks again. |