diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-07-08 14:14:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-07-08 14:14:27 -0300 |
commit | 5f82a1c1a786bf74a41aaecb123f8a7d063e76f2 (patch) | |
tree | 927cd7b41ae97b22ec387bbf6583138cc3d763ea | |
parent | dc8ad39c63989c02ea7cc52ee35c861e572d605e (diff) | |
download | grab-queue-5f82a1c1a786bf74a41aaecb123f8a7d063e76f2.tar.gz grab-queue-5f82a1c1a786bf74a41aaecb123f8a7d063e76f2.tar.bz2 |
Log: download start/finish messages
-rwxr-xr-x | grab-queue | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -78,7 +78,7 @@ class DownloadMultiple: 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 @@ -118,6 +118,9 @@ class DownloadMultiple: 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') |