View Single Post
Old 06-04-2010, 02:24 AM   #2041
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: 56
Karma: 1140
Join Date: Apr 2010
Device: Kindle / Palm Pre / iPhone
Wired fixed itself

Quote:
Originally Posted by notyou View Post
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!
For whatever reasons, the Wired Magazine recipe now seems to be working. It may be specific to the installation of Calibre on my work desktop (Windows XP), as I had no problems with the recipe on my MacBook Pro or a Windows XP laptop.
notyou is offline