aboutsummaryrefslogtreecommitdiff
path: root/grab-queue
diff options
context:
space:
mode:
Diffstat (limited to 'grab-queue')
-rwxr-xr-xgrab-queue4
1 files changed, 2 insertions, 2 deletions
diff --git a/grab-queue b/grab-queue
index cbaf141..d9959a9 100755
--- a/grab-queue
+++ b/grab-queue
@@ -75,11 +75,11 @@ class DownloadMultiple:
folder = os.path.dirname(local_filename)
log_sep = ''
+ self.ensuredir(folder)
+
with open(log_sep + 'grab-queue.log', "a") as log:
log.write('Downloading ' + url + '...')
- self.ensuredir(local_filename)
-
# Set opts
# Other opts: -q --show-progress -O
downloader_bin = self.downloader.split(' ')[0]