From df916b7e88c30f5d977d59c3fdd4f29b04e7e97f Mon Sep 17 00:00:00 2001 From: limkokhole Date: Sun, 23 Jan 2022 13:30:58 +0800 Subject: [PATCH] Fix exclude section. --- pinterest-downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinterest-downloader.py b/pinterest-downloader.py index b14c6cf..76ae5b8 100755 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -1333,7 +1333,7 @@ def update_all( arg_thread_max :int, arg_cut :int, arg_rescrape :bool #print('run URL:' + input_url) while 1: try: - run_library_main(input_url, '.', arg_thread_max, arg_cut, False, False, False, False, arg_rescrape, False, arg_https_proxy, arg_http_proxy) + run_library_main(input_url, '.', arg_thread_max, arg_cut, False, False, False, True, arg_rescrape, False, arg_https_proxy, arg_http_proxy) break except requests.exceptions.ReadTimeout: cprint(''.join([ HIGHER_RED, '{}'.format('\n[' + x_tag + '] [U] Suddenly not able to connect. Please check your network.\n') ]), attrs=BOLD_ONLY, end='' ) @@ -1466,7 +1466,7 @@ def run_library_main(arg_path :str, arg_dir :str, arg_thread_max :int, arg_cut : , arg_force, arg_rescrape, arg_dir, arg_thread_max , IMGS_SESSION, IMG_SESSION, V_SESSION, PIN_SESSION, proxies , arg_cut, arg_el, fs_f_max ) - if sections: + if (not arg_exclude_section) and sections: sec_c = len(sections) print('[i] Trying to get ' + str(sec_c) + ' section{}'.format('s' if sec_c > 1 else '')) for sec in sections: