Pulling my hair out trying to figure this out.
I'm using xmltv's tv_grab_na_dd (latest version) to download my lineup from Shedules Direct. My basic issue is that the resulting xml file has no reference to the attributes "repeat" or "new" -- so everything that's not a sports event is marked "repeat" in TvScheduler.
I've written a python script (attached) that seems to accurately determine whether a program is new by comparing the "programme start" time to the "previously-shown" or "date" values. In its current state it modifies any such programme block by adding "<new></new>" on a line by itself... a modification that doesn't work.
Thing is, I've been completely unable to find a simple explanation of what a new or repeat attribute should look like... there are references to needing to set it, needing to use "new" instead of "repeat," a
Tribune data schema document referencing "xtvd/schedules/schedule/@new" -- but never an actual example of a programme block that's properly marked as "new."
I've tried adding new="true" and/or repeat="false" to the settings (start, stop, channel) inside the actual "programme" tag. I've tried adding a <new></new> entry to the programme grouping's body, as the attached script does. I've removed "previously-shown" tags when present. But
nothing seems to tell TvScheduler "this is not a repeat!"
Here's a sample programme block:
Code:
<programme start="20080506040000 +0000" stop="20080506050000 +0000" channel="I19571.labs.zap2it.com">
<title lang="en">House</title>
<sub-title lang="en">Living the Dream</sub-title>
<desc lang="en">House takes matters into his own hands when he feels certain that one of the actors on his favorite soap opera (Jason Lewis) is suffering from a serious medical condition, but the actor dismisses House's assessment.</desc>
<date>20080505</date>
<category lang="en">Mystery</category>
<category lang="en">Medical</category>
<category lang="en">Series</category>
<episode-num system="dd_progid">EP00688359.0086</episode-num>
<episode-num system="onscreen">414</episode-num>
<video>
<aspect>16:9</aspect>
<quality>HDTV</quality>
</video>
<audio>
<stereo>dolby</stereo>
</audio>
<subtitles type="teletext" />
<rating system="VCHIP">
<value>TV-14</value>
</rating>
</programme>
My python script properly recognizes this as a new episode because the "start=" field in the "programme" tag is closer than 5 days to the value framed by <date></date>, however I have no clue what to do about it, despite hours upon hours of googling!
Can someone please rescue me by replying with what that block needs to look like for TvScheduler to consider it new?
Thanks!