Calculate the difference between startTime and endTime
#1
As a novice in XBMC skinning I am struggling to work out how I could display on a label the time remaining for a particular PVR episode.

To do this I want to find the difference in minutes between the current System Time and the EndTime of the item.

So it would be ListItem.EndTime - System.Time and then display the result on a label:

For example something like below

<label>$INFO[ListItem.EndTime - System.EndTime] mins</label>

But the syntax above does not work. Can anyone point me in the right direction here?
Reply
#2
You can't calculate in skin engine - try ListItem.Duration
My skins:

Amber
Quartz

Reply
#3
(2013-04-24, 16:33)pecinko Wrote: You can't calculate in skin engine - try ListItem.Duration

Thanks for the clarification. Seems a shame there are no sort of Utility functions available for these sort of basic calculations in the skinning engine.
Reply
#4
Maybe you can do it with a script?
Reply
#5
Isn't there a list item remaining?
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
There is Player.TimeRemaining but not ListItem.TimeRemaining.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Calculate the difference between startTime and endTime0