EPG first aired date issues
#1
I am testing populating the broadcast.firstAired field and noticed two things (in v18)

- when there is no data the 0 value in the database shows as  Wednesday, December 31, 1969.  or if I adjust for local time Thursday, January 1, 1970
- the definition of the field as unix timestamps means that older reruns from the 50's and 60's are populated as errors but show as 0

Is there a way of avoid these display issues?

Martin
Reply
#2
(2019-12-10, 15:50)emveepee Wrote: I am testing populating the broadcast.firstAired field and noticed two things (in v18)

- when there is no data the 0 value in the database shows as  Wednesday, December 31, 1969.  or if I adjust for local time Thursday, January 1, 1970
- the definition of the field as unix timestamps means that older reruns from the 50's and 60's are populated as errors but show as 0

Is there a way of avoid these display issues?

Martin


I assume you are testing against Leia as at least the first issue should be fixed with Matrix
Reply
#3
Yes the first issue tests ok in Matrix, when it is zero they don't show.   I just want to make sure the code is ok since some users have asked for this in Leia.  

Martin
Reply
#4
It seems the only workaround for using ListItem.Premiered in v18  that works all timezones in EPG data is
Code:
<visible>!String.Contains(ListItem.Premiered,69) + !String.Contains(ListItem.Premiered,70) + !String.IsEmpty(ListItem.Premiered) </visible>

Note it adds one year to the ListPremiered dates that Kodi PVR ignores.

Since some skins us the same PVR dialog for EPG and Recordings (which don't have ListPremiered data) shared code might need addition code exceptions using a test like this when they don't want to show invalid data
Code:
<visible>String.Contains(ListItem.Premiered,69)  | String.Contains(ListItem.Premiered,70) | String.IsEmpty(ListItem.Premiered) </visible>


Martin
Reply

Logout Mark Read Team Forum Stats Members Help
EPG first aired date issues0