From 2db5555609b4ab157ea836f9611c6faa80508cf3 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Thu, 8 Apr 2010 15:14:12 +0200 Subject: Archive lookup 4grab was saving the archived images to the wrong place, which is now fixed --- download.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'download.py') 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() -- cgit v1.2.3-54-g00ecf