_get_entry_content returns a single dict, but _get_entry_id had been
unpacking it as if it was an object with a `content` attribute.
Also convert HTML to text before extracting the title, to avoid things
like `<p>In the beginning...` in the title.
Signed-off-by: W. Trevor King <wking@tremily.us>
if 'html' in entry.title_detail.type:
title = _html2text.html2text(title)
else:
- title = self._get_entry_content(entry).content[:70]
+ content = self._get_entry_content(entry)
+ value = content['value']
+ if content['type'] in ('text/html', 'application/xhtml+xml'):
+ value = _html2text.html2text(value)
+ title = value[:70]
title = title.replace('\n', ' ').strip()
return title