[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TV] XML data and stop time for last entry

Currently I'm using the following rules for iterating through the programmes:

 - Keep a "current start time" and "next start time" variable, where 
   the "next start time" is the start time of the next programme.
 - Keep a "current date" variable which is the date/time 
   at start of the current day. 
 - if the "end time" is missing, use the "next start time" as a guess.
   if there is no "next start time" use the "current start time"
 	if "end time" < "start time" then 
             "real end time" = "current date" + "end time" + 1 day
             "real end time" = "current date" + "end time"   
 - "real start time" = "current date" + "current start time"
 - if "next start time" < "current start time" then
	"current date" := "current date" + 1 day

On Monday 02 February 2004 16:25, you wrote:
> In list.comp.tv, DG wrote:
> > Your file only has a START time =96 is it possible for you to either:
> >
> > 1. Include the STOP time?
> Not easily as most channel's websites don't contain it :-/
> > 2. Repeat the last entry in the following day=92s listing with a start =
> > and a stop time there?
> Yes, this is potentially possible, however still wouldn't be 100%
> reliable as the last day available wouldn't have a final time. Also,
> that assumes the channel broadcasts 24/7.
> If anyone's got any ideas, I'd be glad to hear them.
> Cheers,
> Andrew