diff options
Diffstat (limited to 'download.py')
-rw-r--r-- | download.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |