diff options
-rwxr-xr-x | ckandumper | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -24,6 +24,7 @@ import asyncio import argparse import sys, os, json from urllib.parse import urlencode +from hashlib import sha256 from tqdm import tqdm class DownloadMultiple: @@ -93,6 +94,11 @@ class DownloadMultiple: output.write(str(datetime.datetime.now()) + '\n') output.close() + content = open(local_filename, 'rb') + output = open(local_filename + '.sha256', 'w') + output.write(sha256(content.read()).hexdigest() + ' ' + os.path.basename(local_filename) + '\n') + output.close() + if not str(proc.returncode) in self.globalstats['exitstatus']: self.globalstats['exitstatus'][str(proc.returncode)] = [] |