summaryrefslogtreecommitdiffstats
path: root/download.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-03-19 16:08:39 +0100
committerGravatar ryuslash2010-03-19 16:08:39 +0100
commit4b70374e9d6c041fda31d5b594f1f6605496ea92 (patch)
treeaa669241844cb05d5712a9085081d9af3dae29a7 /download.py
parent96247d41d50c53e7d3e1c5aa4c6a8dcba6d647f2 (diff)
download4grab-4b70374e9d6c041fda31d5b594f1f6605496ea92.tar.gz
4grab-4b70374e9d6c041fda31d5b594f1f6605496ea92.zip
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
Diffstat (limited to 'download.py')
-rw-r--r--download.py4
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