Jo: Thanks for the update, but it is having consistency problems due to the SchedulesDirect problems mentioned earlier.
Can you pre-filter the data?
I've been looking at FreeGuide. It will show some of the raw data and handles new programs correctly. I think something like this would work:
If year (with no date stamp) is less than CurrentYear, delete New flag.
If date stamp is less than Today-1, delete New flag. (allows for 24h repeat showings)
If date stamp is greater than or equal to Today, flag as New regardless of New status.
If RepeatOf date stamp is greater than or equal to Today-1, flag as New regardless of New status.
If Repeat Flag is set but date stamp is greater than or equal to Today-1, delete Repeat Flag.
As an example, I'm looking at the Smithsonian Channel for June 8. "Air Disasters: Grand Canyon" is a new episode but SchedulesDirect has it flagged as Repeat. There is no repeat date shown, but the date stamp is 20140608 (2 days ahead of this posting). The rules above should fix the "New Flag" problem and should be easy to implement.
Thanks for the help.