Quote:
Originally Posted by dvdfreak Just to make sure I don't misunderstand: where does your actual XMLTV file come from? Is it written by the Schedules Direct plugin or not? |
Are you talking about the
Mediaportal Schedules Direct plugin? If so the answer is no. That plugin doesn't generate an XML at all... it simply updates MediaPortal's EPG data directly. My XML file is generated by XMLTV's official utility suite (
homepage here)... specifically by the tv_grab_na_dd grabber.
Quote:
Originally Posted by dvdfreak Because if that's the case there's no need to go and talk to the people behind the official XMLTV distribution, because all they did is define the spec. |
Well, they defined the spec
and developed the utility suite that creates and works with files in the XMLTV format.
Quote:
Originally Posted by dvdfreak ...the problem could very easily lie with the source of the data, the site where the Schedules Direct gets the data from... |
This could very well be the case. I spent some time yesterday skimming the tv_grab_na_dd perl script (the actual code is in a file called tv_grab_na_dd.in). The logic seems simple enough: If there's no "new" data attribute it embeds the "original air date" attribute (plus 6 zeros) into a previously-shown tag and writes it to the XML. If there
is a "new" attribute it doesn't write out a previously-shown tag.
This does explain why the deltas varied by a few hours: the "programme start" value is in the format YYYYMMDDHHMMSS, while the embedded original air date is YYYYMMDD plus 6 added zeros for HHMMSS. Most of the first run shows I was looking at were Prime Time shows starting at 8:00 or 9:00, and (since I mistakedly considered hours & minutes instead of just y/m/d) the delta was different for 8:00 shows vs. 9:00 shows.
Another factor: my timezone was set for UTC, which is what XMLTV recommends. The XMLTV configuration script says: "It is better to specify +0000 and let the final application deal with a local conversion (helps with DST issues), but you can specify a Time Offset if desired."
However, if I manually specify my timezone as -0700 (Pacific Daylight Time)
and ignore the hours & minutes part of the embedded date, the delta is completely gone... i.e. the y/m/d part of the "programme start" tag matches the embedded "original air date".
So it seems I've boiled down the issue to one thing:
it seems the tv_grab_na_dd grabber doesn't see "new" attributes for first run shows, so no matter what my timezone offset these shows always have previously-shown tags.
My next stop is the Schedules Direct forum... hopefully they can determine whether my issue's caused by an error in the data they get from Tribune Media or an error in the way the XMLTV tv_grab_na_dd grabber queries or interprets that data. I've also posted to the XMLTV bug tracker for good measure.