From 4b70374e9d6c041fda31d5b594f1f6605496ea92 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Fri, 19 Mar 2010 16:08:39 +0100 Subject: FAIL and print If source and dest in copy are the same, it is no longer reported If an image can't be read, it is counted as failed --- download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'download.py') diff --git a/download.py b/download.py index 3b12cc8..62a611b 100644 --- a/download.py +++ b/download.py @@ -35,7 +35,6 @@ def check_archive(fullpath): archive = conf.get_archive_location() filename = os.path.basename(fullpath) archfile = os.path.join(archive, filename) - #print "Path", archfile, "exists:", os.path.exists(archfile) return os.path.exists(archfile) class Downloader(object): @@ -134,7 +133,8 @@ class Downloader(object): else: downloaded += 1 if self.on_downloaded is not None: - self.on_downloaded(filename) + if not self.on_downloaded(filename): + failed += 1 else: skipped += 1 i += 1 -- cgit v1.2.3-54-g00ecf