finch/libgnt/pygnt/example/rss/gntrss.py

changeset 19233
50476028f83f
parent 19195
f1aaa37a842a
child 19814
05ce6c570b47
child 19859
71d37b57eff2
--- a/finch/libgnt/pygnt/example/rss/gntrss.py	Sat Aug 11 04:15:11 2007 +0000
+++ b/finch/libgnt/pygnt/example/rss/gntrss.py	Sat Aug 11 04:17:15 2007 +0000
@@ -55,8 +55,7 @@
             item['date'] = self.date = time.ctime()
             self.date_parsed = feedparser._parse_date(self.date)
 
-        self.title = item['title']
-        sum = item['summary']
+        self.title = item['title'].encode('utf8')
         self.summary = item['summary'].encode('utf8')
         self.link = item['link']
         self.parent = parent
@@ -79,7 +78,7 @@
 gobject.type_register(FeedItem)
 
 def item_hash(item):
-    return str(item['date'] + item['title'])
+    return str(item['title'])
 
 """
 The Feed class. It will update the 'link', 'title', 'desc' and 'items'
@@ -171,6 +170,7 @@
             self.set_property('unread', unread)
 
         for hv in tmp:
+            self.items.remove(tmp[hv])
             tmp[hv].remove()
             "Also notify the UI about the count change"
 

mercurial