self.ensuredir(folder)
with open(logdir + 'grab-queue.log', "a") as log:
- log.write('Downloading ' + url + '...')
+ log.write('Downloading started: ' + url + "\n")
# Set opts
# Other opts: -q --show-progress -O
output.write(str(datetime.datetime.now()) + '\n')
output.close()
+ with open(logdir + 'grab-queue.log', "a") as log:
+ log.write('Downloading finished: ' + url + "\n")
+
if os.path.isfile(local_filename):
# File might be too big, so we're not computing it's inside the script
#content = open(local_filename, 'rb')