From a71c530ac7034717f971c866cd6e5a5e983ba6ac Mon Sep 17 00:00:00 2001 From: limkokhole Date: Thu, 20 Jan 2022 18:24:07 +0800 Subject: [PATCH] Fix pin no log --- pinterest-downloader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pinterest-downloader.py b/pinterest-downloader.py index 3dc3f45..4e8a9df 100755 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -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