This lwn_weekly recipe suddenly stopped working for me last night, I had to edit it as follows in order to get it working:
Code:
--- lwn_weekly.recipe 2011-07-01 10:19:40.000000000 +0300
+++ lwn_weekly.recipe.new 2011-09-23 14:54:36.815730882 +0300
@@ -95,7 +95,7 @@
break
article = dict(
- title=tag_title.string,
+ title=tag_title.contents[0].string,
url= 'http://lwn.net' + tag_url['href'].split('#')[0] + '?format=printable',
description='', content='', date='')
articles[section].append(article)
(explanation: The tag_title contains a link which contains the title string, so 'string' on tag_title itself is returning None.)
I don't know what has changed to make it suddenly not work, it's possible that it's something on my system (any ideas what it could be?). But just in case it's something more widespread, I thought I'd share my experience.
Also, I'm new to calibre recipes and BeautifulSoup, so very likely there's a better/more robust way to fix this that what I've done.
Thanks!
Dov