From ec7a6e3c8967644b5272418b611e911e01f0ee4c Mon Sep 17 00:00:00 2001 From: limkokhole Date: Tue, 18 Jan 2022 01:24:29 +0800 Subject: [PATCH] image(s) --- pinterest-downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pinterest-downloader.py b/pinterest-downloader.py index e4cad7e..d0f1770 100755 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -1024,7 +1024,8 @@ Please ensure your username/boardname or link has media item.\n') ) if got_img: # From what I observed, always got extra index is not media, so better -1 # And no point to loop above and detect early, overkill - print(' [' + plus_tag + '] Found estimated {} images'.format(len(images) - 1)) + img_total = len(images) - 1 + print( (' [' + plus_tag + '] Found estimated {} image' + ('s' if img_total > 1 else '') ) .format(img_total)) else: # empty section print('\n[i] No item found.') return