Add offset to ListItem.NextTitle / StartDate / StartTime
#1
As subject says, it is usefull to add an offset to ListItem.NextTitle/ListItem.NextStartDate/ListItem.NextStartTime. Gives the availability showing the next 3-4 items in info pages. Also it makes sense in my opinion moving PVR only related ListItems directly to the PVR section.

Regards
Reply
#2
Is there a clear explanation of .offset and .postion anywhere?
https://kodi.wiki/view/InfoLabels mentions that some infolabels supports offset and position but I cannot find a clear explanation.
Reply
#3
.offset and .position are only for items in a playlist.

For example:-
offset is from the current playing item
VideoPlayer.offset(-1).Title - title of previous item in playlist
VideoPlayer.offset(0).Title - title of current item in playlist
VideoPlayer.offset(1).Title - title of next item in playlist

position is absolute from the beginning of the playlist
VideoPlayer.position(0).Title - title of first item in playlist
VideoPlayer.position(1).Title - title of  second item in playlist
Reply
#4
Thanks for the explanation. Truly appreciated.
Reply
#5
(2024-08-26, 16:27)_BJ1 Wrote: As subject says, it is usefull to add an offset to ListItem.NextTitle/ListItem.NextStartDate/ListItem.NextStartTime.
For those who wonders why this should make sense, an example:
  • 18:50 Sandman Good Night Greetings
  • 18:57 Weather for 3
  • 19:00 Local News
  • 19:10 World News

As you see there are some shorts events. You can see at a glance which programs are coming up in the next time and whether it is worth continuing to watch the channel. This info can be placed in the OSD or even in some PVR info window.

The screenshot below is a shot from the OpenATV Image of an Enigma receiver. See right hand the multiple EPG events.

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Add offset to ListItem.NextTitle / StartDate / StartTime0