Add rss2email v2.23 v2.23
authorAaron Swartz <me@aaronsw.com>
Fri, 30 Jan 2004 12:00:00 +0000 (12:00 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 15 Feb 2013 16:37:52 +0000 (11:37 -0500)
Fix for empty link tags.

Downloaded from:

  http://web.archive.org/web/20040416224442/http://www.aaronsw.com/2002/rss2email/rss2email-2.23.py

rss2email.py

index 29d937643836e0d2584c576bbc25790647556114..37c05fddd812d868182eaab17562347f3196d829 100644 (file)
@@ -12,7 +12,7 @@ Usage: python rss2email.py feedfile action [options]
        list
        delete n
 """
-__version__ = "2.22"
+__version__ = "2.23"
 __author__ = "Aaron Swartz (me@aaronsw.com)"
 __copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2."
 ___contributors__ = ["Dean Jackson (dino@grorg.org)", 
@@ -151,7 +151,7 @@ def run():
                        content = getContent(i, f.url)
                        id = getID(i, content)
                
-                       if i.has_key('link'): frameid = link = e(i, 'link')
+                       if i.has_key('link') and i['link']: frameid = link = e(i, 'link')
                        else: frameid = id; link = None
                        
                        if f.seen.has_key(frameid) and f.seen[frameid] == id: