use concatenation of title&link if a rss feed with an older standard than 2.0 is...
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 13 Sep 2008 18:45:09 +0000 (18:45 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 13 Sep 2008 18:45:09 +0000 (18:45 +0000)
simplerss/src/RSSFeed.py

index b018c2b..3050753 100644 (file)
@@ -121,11 +121,11 @@ class RSSFeed:
                        except:
                                link = ""
                        
-                       # Try to read guid, link if none (RSS 1.0 or invalid RSS 2.0)
+                       # Try to read guid, title+link if none (RSS 1.0 or invalid RSS 2.0)
                        try:
                                guid = item.getElementsByTagName("guid")[0].childNodes[0].data
                        except:
-                               guid = link
+                               guid = ''.join([title, link])
 
                        # Continue if item is to be excluded
                        if guid in self.last_ids: