From: Brett Parker Date: Thu, 17 Apr 2008 07:20:55 +0000 (+0100) Subject: Fix typo in previous charref fix X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/b22a8446e1882b310b9eed73b0346c09a0eeb181 Fix typo in previous charref fix --- diff --git a/rss2maildir.py b/rss2maildir.py index 84a9f09..bbd9b1b 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -562,7 +562,7 @@ class HTML2Text(HTMLParser): try: entity = unichr(int(name)) except: - if entity[0] == 'x': + if name[0] == 'x': try: entity = unichr(int('0%s' %(name,), 16)) except: @@ -683,7 +683,7 @@ def parse_and_deliver(maildir, url, statedir): if item.has_key("content"): content = item["content"][0]["value"] else: - content = item["summary"] + content = item["description"] md5sum = md5.md5(content.encode("utf-8")).hexdigest()