diff options
author | ryuslash | 2010-04-08 15:14:12 +0200 |
---|---|---|
committer | ryuslash | 2010-04-08 15:14:12 +0200 |
commit | 2db5555609b4ab157ea836f9611c6faa80508cf3 (patch) | |
tree | f62e16e906feede66f3e6981bfa31ec031bed766 /download.py | |
parent | 9fb2b4ff58681dde805f9ac2c8be3b59ad8e9a50 (diff) | |
download | 4grab-2db5555609b4ab157ea836f9611c6faa80508cf3.tar.gz 4grab-2db5555609b4ab157ea836f9611c6faa80508cf3.zip |
Archive lookup
4grab was saving the archived images to the wrong place, which is now fixed
Diffstat (limited to 'download.py')
-rw-r--r-- | download.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/download.py b/download.py index 7508a50..68315bc 100644 --- a/download.py +++ b/download.py @@ -22,6 +22,7 @@ import os import htmlparser import config import sys +import backend def get_savedir(): conf = config.Configuration() @@ -30,12 +31,10 @@ def get_savedir(): os.makedirs(savedir) return savedir def check_archive(fullpath): - conf = config.Configuration() - archive = conf.get_archive_location() filename = os.path.basename(fullpath) - archfile = os.path.join(archive, filename) - #sys.stderr.write("%s %d\n" % (archfile, os.path.exists(archfile))) - return os.path.exists(archfile) + be = backend.Backend() + return be.check(filename) + def write(message): sys.stdout.write(message) sys.stdout.flush() |