Added step description

- Downloading is now 2/2
pull/7/head
Julius 6 years ago
parent 27f86db8aa
commit a472b15846

@ -113,7 +113,7 @@ def get_img4sub(url: str, length: int =-1) -> list:
def download_images(imgs: list, zfile: zipfile.ZipFile): def download_images(imgs: list, zfile: zipfile.ZipFile):
imgcount = len(imgs) imgcount = len(imgs)
fnames = [zinfo.filename for zinfo in zfile.infolist()] fnames = [zinfo.filename for zinfo in zfile.infolist()]
print('[~] Downloading %s images' % imgcount) print('[~] 2/2 Downloading %s images' % imgcount)
pb = cutils.ProgressBar(total=imgcount, prefix="[~] 2/2 Downloadinng", suffix="Complete") pb = cutils.ProgressBar(total=imgcount, prefix="[~] 2/2 Downloadinng", suffix="Complete")
fsutils.dir_exist_guarantee(dl_dir) fsutils.dir_exist_guarantee(dl_dir)
for img in imgs: for img in imgs:

Loading…
Cancel
Save