NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
Free XMLTV EPG scraper

 
  • 0 Vote(s) - 0 Average
Free XMLTV EPG scraper
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#21
2007-08-05, 07:05 PM
whurlston Wrote:I agree. You can add the program to the exclusion list and it should not trip it.

No problem, thought it was worth mentioning just in case. I wasn't accusing the author of being malicious, just to clarify.
JimF
Offline

Member

Posts: 217
Threads: 19
Joined: Oct 2005
#22
2007-08-05, 07:55 PM
Thanks for the wonderful program. I just installed GB-PVR 1.08 yesterday, and was wondering what I was going to do for a program guide. It is elegant and easy to use.

But I have the same problem as Carlito with the time offset. That is, a program that should start at 5 PM shows up in the guide as 10 PM. I also tried changing the offset in GB-PVR with no luck. And why it is a 3 hour difference is something of a mystery, since we are 4 hours behind GMT here in the eastern U.S. (eastern daylight time).
HDHomeRun Prime, Win7 64-bit, NPVR 3.4.8
drlava
Offline

Member

Posts: 188
Threads: 18
Joined: Jul 2007
#23
2007-08-06, 02:06 AM
Jim, thanks for the kind words. Could you PM me your zipcode and whether or not your area observes daylight savings? The daylight savings handling needs further refinement, it may be the reason for the 1 hour offset (3 vs 4).

As for the large time offset, it might be a matter of time representation in the XMLOut file. The time displayed is the local time, and the +/- offset is displayed next to it. I don't know, but GBPVR may be expecting central time displayed, with the offset necessary after it. Someone here cna probably clarify this, as I don't use GBPVR...
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#24
2007-08-06, 02:50 AM
Here is a snip from my XMLOut
Code:
<programme channel="28456298" start="20070804033500 -0300">
  <title>The Tonight Show With Jay Leno</title>
The start time 20070804033500 is actually the UTC start time of that program. It should read:
Code:
<programme channel="28456298" start="20070804033500 +0000">
  <title>The Tonight Show With Jay Leno</title>
drlava
Offline

Member

Posts: 188
Threads: 18
Joined: Jul 2007
#25
2007-08-06, 03:36 AM
Hmm, the ISO 8601 which is referenced in the DTD
http://www.w3.org/TR/NOTE-datetime

says:
Quote:This profile defines two ways of handling time zone offsets:

1. Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator ("Z").
2. Times are expressed in local time, together with a time zone offset in hours and minutes. A time zone offset of "+hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes ahead of UTC. A time zone offset of "-hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes behind UTC.

Also, from the DTD:
Quote:if no explicit timezone is given, UTC is assumed.

together, this would indicate to me that 'YYYMMDDHHMMSS' alone would be read as UTC, and 'YYMMDDHHMMSS EST' or 'YYMMDDHHMSS +0300' should be read as a local time with timezone to get back to UTC if necessary.

I see GBPVR has an hour offset setting, maybe this could be used to fix this? Or is that what people are saying keeps getting reset?
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#26
2007-08-06, 03:48 AM
drlava Wrote:together, this would indicate to me that 'YYYMMDDHHMMSS' alone would be read as UTC, and 'YYMMDDHHMMSS EST' or 'YYMMDDHHMSS +0300' should be read as a local time with timezone to get back to UTC if necessary.
Correct. The problem is that the time is not local time but UTC. Also, the -0300 is actually wrong for my timezone (-0400 during DST and -0500 otherwise).

drlava Wrote:I see GBPVR has an hour offset setting, maybe this could be used to fix this? Or is that what people are saying keeps getting reset?
I haven't tested it. I'll try it tomorrow and let you know.

Please don't think I'm trying to knock your program. I think that you did a great job!
drlava
Offline

Member

Posts: 188
Threads: 18
Joined: Jul 2007
#27
2007-08-06, 03:57 AM
whurlston Wrote:Correct. The problem is that the time is not local time but UTC. Also, the -0300 is actually wrong for my timezone (-0400 during DST and -0500 otherwise).
Interesting. Those values are taken from the MSN response. Perhaps there's some more canadian diffferences I hadn't noticed, because in my time zone in the U.S., it reports local time.

Quote:Please don't think I'm trying to knock your program.

Not at all, I'm just intereseted in making sure that the bugs are squashed correctly, not in a 'just make it work' fashion. Thanks for your input.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#28
2007-08-06, 04:12 AM
drlava Wrote:Interesting. Those values are taken from the MSN response. Perhaps there's some more canadian diffferences I hadn't noticed, because in my time zone in the U.S., it reports local time.
You're the second person in a week to think I'm Canadian. I'm actually in Kentucky. Big Grin

Not at all, I'm just intereseted in making sure that the bugs are squashed correctly, not in a 'just make it work' fashion. Thanks for your input.[/QUOTE]
Me too. I just wanted to make sure you knew that.

I attempted to use the hour offset in GB-PVR but it had no effect. I then ran a simple search and replace and changed all the offsets in the xml file to "+0000" and all the programs populated in the correct timeslot. If I removed the offset altogether, GB-PVR assumed they were local time which they weren't (they were UTC) and therefore they guide was off by 4 hours.

Hope this helps you.
drlava
Offline

Member

Posts: 188
Threads: 18
Joined: Jul 2007
#29
2007-08-06, 04:37 AM
whurlston Wrote:I attempted to use the hour offset in GB-PVR but it had no effect. I then ran a simple search and replace and changed all the offsets in the xml file to "+0000" and all the programs populated in the correct timeslot. If I removed the offset altogether, GB-PVR assumed they were local time which they weren't (they were UTC) and therefore they guide was off by 4 hours.

Hope this helps you.

Thanks. That operation seems to run counter to what we were thinking the standard specification was a few posts ago, where a time without a zone would be UTC and a time with a zone would be local.

At any rate, I found a few changes that are necessary to deal with DST properly, and to get the guide data starting with the current hour, so I'll deal with those first.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#30
2007-08-06, 05:00 AM
drlava Wrote:At any rate, I found a few changes that are necessary to deal with DST properly, and to get the guide data starting with the current hour, so I'll deal with those first.
Sounds good. You're still well ahead of the cutoff date. If you have any questions, I'll do my best to answer them.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (22): « Previous 1 2 3 4 5 … 22 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,543 2018-10-23, 07:24 AM
Last Post: almightyj
  XMLTV Channel Number Option gdogg371 12 7,035 2018-07-18, 04:32 PM
Last Post: sub
  Merge xmltv data with xslt Graham 4 3,584 2014-01-02, 12:45 PM
Last Post: Graham
  XMLTV data mvallevand 6 2,687 2011-04-16, 03:08 AM
Last Post: sub
  zap2xml - a free zap2it scraper jdg 193 119,033 2011-04-13, 03:01 PM
Last Post: fla
  XmlTv Structure psycik 2 2,254 2008-12-29, 10:53 PM
Last Post: psycik
  Content Provider: How to publish XMLTV data? skoka123 6 3,528 2008-09-03, 05:48 AM
Last Post: skoka123
  XMLTV Questions -Oz- 34 10,607 2008-03-24, 01:19 AM
Last Post: zehd
  New XMLTV Enhancer and more... zehd 388 93,724 2008-03-05, 07:45 PM
Last Post: zehd
  I-xmltv updated for YahooXMLTv (adds a new show marker and more) Jim_ 78 25,637 2008-01-02, 10:33 AM
Last Post: tvshowman

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode