except: blogItem.itemDate = 0
else:
blogItem.itemDate = 0
- if entry.has_key('description'):
+ if entry.has_key('content'):
+ # get the contents of the first item with a text/html type
+ # no feeds without a text/html type have been encountered in the wild, but who knows
+ blogItem.contents = [content['value'] for content in entry['content'] if content['type'] == 'text/html'][0]
+ elif entry.has_key('description'):
blogItem.contents = entry['description']
else:
blogItem.contents = '(entry could not be retrieved)'