contrib/rss: do not check for previously downloaded files
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 26 Jun 2015 20:48:28 +0000 (16:48 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 30 Jun 2015 16:38:01 +0000 (12:38 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/rss_downloader/src/rss_downloader.nit

index e662fac..200fead 100644 (file)
@@ -151,11 +151,7 @@ class Downloader
                for element in matches do
                        var unique_id = element.unique_id(config)
 
-                       if local_path.to_path.exists then
-                               # Do not redownload a file (we assume that the file name is unique by itself)
-                               if sys.verbose then print "File exists, skipping {element}"
-                               continue
-                       else if history.has(unique_id) then
+                       if history.has(unique_id) then
                                # Do not download a file that is not unique according to `unique_id`
                                if not element.is_unique_exception(config) then
                                        # We make some exceptions