View Single Post
Old 05-27-2010, 06:26 PM   #1994
notyou
Connoisseur
notyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheesenotyou can extract oil from cheese
 
Posts: 52
Karma: 1140
Join Date: Apr 2010
Device: Kindle / Palm Pre / iPhone
Hoping someone can help me with the Wired Magazine recipe, which the latest June 2010 issue seems to have broken.

Calibre is giving me the dreaded "AttributeError: 'NoneType' object has no attribute 'a'" error:

It's happening here:

File "c:\docume~1\darryl~1\locals~1\temp\calibre_0.6.54 _jujqqs_recipes\recipe0.py", line 79, in parse_index
url = 'http://www.wired.com' + divurl.a['href']

Looking at the source at http://www.wired.com/magazine I think the problem may be that Wired has added a new "Bonus Video" section which does not have a feature-header div, and so the URL cannot be parsed from there. Is there anyways to have Calibre skip feature sections that don't have headers?

Thanks!
notyou is offline