![]() |
#1 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
|
Time Calculation off by 14 hours
Is anyone else running across this? I've been trying to understand why I have to download 2 days worth of news to get every article in a 24 hour period and it seems that the time used by Calibre to determine if an article is too old is off by 14 hours. Here's a snippet of a log from a job this morning:
Quote:
Vanek expects wild Minnesota homecoming Yesterday, March 05, 2011, 10:40:57 PM Sabres forward expects to have 40-50 fans in attendance at XCel Energy Center Will Enroth start? Mum's the word Friday, March 04, 2011, 11:55:39 PM Goalie recalled from Portland and could see action today against Flyers Vanek, Stafford look to snap slumps Friday, March 04, 2011, 11:55:18 PM Buffalo's top scorers having a hard time finding the back of the net. Any suggestions? This was run this morning at 9am Eastern, with a 1 day old flag. I have confirmed from other articles that it does use a 24 hour period as there are articles that cross the date/day barrier. Thanks! |
|
![]() |
![]() |
![]() |
#2 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
|
Oddly enough, if I just do a basic recipe with the following feed:
http://www.buffalonews.com/sports/sa...ontentId=77944 and set the oldest article to "1 day" in the dialog box, it knows the article date. Compare the log entries below to the ones from my original post. Quote:
UPDATED: I just took that basic recipe, switched to advanced mode, didn't add a single line, and ran the recipe. The date was off again. Must be a different parsing of the RSS feed when you switch to advanced mode which is causing the issue. Last edited by ChappyOnIce; 03-06-2011 at 12:11 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
|
After looking into this more myself, I'm thinking that it could be a problem with a bogus time format on the Buffalo News Atom feed. Here's what the feed looks like:
Code:
<item> <title>Mold risk could stall courthouse opening</title> <link>http://www.buffalonews.com/city/communities/downtown/article361082.ece</link> <description>Mysterious moisture problem in building's walls poses health hazard, concerns federal officials</description> <pubDate>Tue, 08 Mar 2011 10:08:23 -0500</pubDate> <guid>http://www.buffalonews.com/city/communities/downtown/article361082.ece</guid> </item> I'm hoping someone can chime in on if they think I'm on the right or wrong path. I know there has been some discussion about dates and conversion (Kindle formats, etc.), but this clearly has to do with a recipe process. Has anyone implemented a custom date handler in another recipe I can look at? Thanks, Chappy |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, this would be because of the non standard time format. You would have to override the parse_feeds function to implement your own parsing logic.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
|
Thanks Kovid. Can you tell me which module/function is responsible for the job output text of "Skipping article....from feed....as it is too old."? Is that the "feed_from_xml" function that's being called from the built-in parse_feeds?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes, look in feeds.__init__
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Files have wrong time on the k3. Hours in advance. | FF2 | Amazon Kindle | 8 | 03-09-2011 11:41 AM |
4 hours and still disappointed | panda53 | Interead COOL-ER | 3 | 01-19-2010 05:28 PM |
Unutterably Silly How many hours of sleep? | TadW | Lounge | 44 | 01-23-2009 07:56 AM |
what's the big deal about formats? -- a little calculation | sic | Sony Reader | 4 | 11-25-2006 02:10 PM |
1st 48 Hours | WBS | Sony Reader | 10 | 10-30-2006 12:48 AM |