Fix pin no log

This commit is contained in:
limkokhole
2022-01-20 18:24:07 +08:00
parent 8e62c01832
commit a71c530ac7

View File

@@ -885,7 +885,9 @@ def write_log(arg_timestamp_log, url_path, shortform, save_dir, images, pin, arg
f.write('Pinterest Downloader: Version ' + str(__version__) + '\n\n')
else:
if break_from_latest_pin: # Already cut last non-image, so no need -1
if pin:
img_total = 1
elif break_from_latest_pin: # Already cut last non-image, so no need -1
img_total = len(images)
else:
img_total = len(images) - 1