Fix call to addImage.
authorNeal H. Walfield <neal@walfield.org>
Mon, 5 Sep 2011 20:33:31 +0000 (22:33 +0200)
committerNeal H. Walfield <neal@walfield.org>
Mon, 5 Sep 2011 20:33:31 +0000 (22:33 +0200)
 - When calling addImage, include the opener we are using to gather
   statistics.

src/rss_sqlite.py

index baac3e4..cf6cbcc 100644 (file)
@@ -358,8 +358,10 @@ class Feed:
                        self.serial_execution_lock.release ()
                        have_serial_execution_lock = False
                        for img in images:
-                            filename = self.addImage(configdir, self.key, baseurl, img['src'], proxy=proxy)
-                            if filename:
+                           filename = self.addImage(
+                               configdir, self.key, baseurl, img['src'],
+                               opener=opener)
+                           if filename:
                                 img['src']="file://%s" %filename
                                 count = self.db.execute("SELECT count(1) FROM images where id=? and imagePath=?;", (id, filename )).fetchone()[0]
                                 if count == 0: