changeset 24:96e2d5ffcd23 draft

remove double feed parsing Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author Changaco <changaco ατ changaco δοτ net>
date Sat, 04 Aug 2012 16:58:57 +0200
parents 5bb7c2939da0
children 0946b4e64b20
files feed-push
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/feed-push
+++ b/feed-push
@@ -157,10 +157,9 @@ def handle_feed_change(path, event):
     if path not in path_to_feed_fd:
         if event in [gamin.GAMCreated, gamin.GAMExists, gamin.GAMChanged]:
             try:
-                feed_fd = path_to_feed_fd[path] = open(path)
+                path_to_feed_fd[path] = open(path)
             except IOError as e:
                 return log('failed to open "'+path+'": '+str(e))
-            feed = feedparser.parse(feed_fd.read())
             handle_feed_change(path, gamin.GAMChanged)
         else:
             ignore_event(path, event)