Add fallback to -rs reason.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user