]> git.sommitrealweird.co.uk Git - rss2maildir.git/commitdiff
Fix typo in previous charref fix
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 17 Apr 2008 07:20:55 +0000 (08:20 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 17 Apr 2008 07:20:55 +0000 (08:20 +0100)
rss2maildir.py

index 84a9f0964408cd9f216d45be9b1921302f3312df..bbd9b1bb375f97a476d53ac9e9b92f1929cc326e 100755 (executable)
@@ -562,7 +562,7 @@ class HTML2Text(HTMLParser):
         try:
             entity = unichr(int(name))
         except:
         try:
             entity = unichr(int(name))
         except:
-            if entity[0] == 'x':
+            if name[0] == 'x':
                 try:
                     entity = unichr(int('0%s' %(name,), 16))
                 except:
                 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:
         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()
 
 
         md5sum = md5.md5(content.encode("utf-8")).hexdigest()