From c79b99ac0783095b115a33de5291081ce33b14d5 Mon Sep 17 00:00:00 2001 From: limkokhole Date: Wed, 19 Jan 2022 11:18:22 +0800 Subject: [PATCH] Add fallback to -rs reason. --- README.md | 2 +- pinterest-downloader.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 61dd2b3..50c9e52 100755 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Download all images/videos from Pinterest user/board/section. ### Example Output: xb@dnxb:~/Downloads/pinterest/pinterest-downloader$ python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/ [...] Getting all images in this board: computer ... [ 74 / ? ] - [W] This images list is not sorted correctly, fallback to -rs for this list. + [W] This images list is not sorted(Due to user reorder or alphanumeric pin ID), fallback to -rs for this list. [...] Getting all images in this board: computer ... [ 173 / ? ] [➕] Found 195 image/videos Download into directory: comp/antonellomiglio/Computer diff --git a/pinterest-downloader.py b/pinterest-downloader.py index 39283ba..8d249e7 100755 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -1096,7 +1096,7 @@ Please ensure your username/boardname/[section] or link has media item.\n') ) if img['id'].isdigit(): img_curr = img['id'] if img_prev and (float(img_curr) > float(img_prev)): - cprint(''.join([ HIGHER_YELLOW, '%s' % ('\n[W] This images list is not sorted correctly, fallback to -rs for this list.\n\n') ]), attrs=BOLD_ONLY, end='' ) + cprint(''.join([ HIGHER_YELLOW, '%s' % ('\n[W] This images list is not sorted(Due to user reorder or alphanumeric pin ID), fallback to -rs for this list.\n\n') ]), attrs=BOLD_ONLY, end='' ) sorted_api = False reach_lastest_pin = False if on_hold_break: @@ -1112,7 +1112,7 @@ Please ensure your username/boardname/[section] or link has media item.\n') ) on_hold_break = True img_prev = img_curr else: - cprint(''.join([ HIGHER_YELLOW, '%s' % ('\n[W] This images list is not sorted correctly, fallback to -rs for this list.\n\n') ]), attrs=BOLD_ONLY, end='' ) + cprint(''.join([ HIGHER_YELLOW, '%s' % ('\n[W] This images list is not sorted(Due to user reorder or alphanumeric pin ID), fallback to -rs for this list.\n\n') ]), attrs=BOLD_ONLY, end='' ) sorted_api = False reach_lastest_pin = False imgs_round = data['resource_response']['data'] # replaced back above