home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
TV-Server
For The Record - The rule-based scheduling suite
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mrbenji" data-source="post: 265494" data-attributes="member: 69110"><p><strong>Getting closer...</strong></p><p></p><p>Are you talking about the <em>Mediaportal</em> 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 (<a href="http://xmltv.org/wiki/" target="_blank">homepage here</a>)... specifically by the tv_grab_na_dd grabber.</p><p></p><p>Well, they defined the spec <em>and </em>developed the utility suite that creates and works with files in the XMLTV format. </p><p></p><p>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 <strong>is</strong> a "new" attribute it doesn't write out a previously-shown tag.</p><p></p><p>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.</p><p></p><p>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." </p><p></p><p>However, if I manually specify my timezone as -0700 (Pacific Daylight Time) <strong>and</strong> 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". </p><p></p><p>So it seems I've boiled down the issue to one thing: <strong>it seems the tv_grab_na_dd grabber doesn't see "new" attributes for first run shows</strong>, so no matter what my timezone offset these shows always have previously-shown tags.</p><p></p><p>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.</p></blockquote><p></p>
[QUOTE="mrbenji, post: 265494, member: 69110"] [b]Getting closer...[/b] Are you talking about the [I]Mediaportal[/I] 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 ([URL="http://xmltv.org/wiki/"]homepage here[/URL])... specifically by the tv_grab_na_dd grabber. Well, they defined the spec [I]and [/I]developed the utility suite that creates and works with files in the XMLTV format. 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 [B]is[/B] 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) [B]and[/B] 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: [B]it seems the tv_grab_na_dd grabber doesn't see "new" attributes for first run shows[/B], 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
For The Record - The rule-based scheduling suite
Contact us
RSS
Top
Bottom