From b22a8446e1882b310b9eed73b0346c09a0eeb181 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Thu, 17 Apr 2008 08:20:55 +0100 Subject: [PATCH] Fix typo in previous charref fix --- rss2maildir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5