diff --git a/ADC_function.py b/ADC_function.py index bfa4bb8..16887a1 100644 --- a/ADC_function.py +++ b/ADC_function.py @@ -523,7 +523,10 @@ def download_one_file(args) -> str: """ (url, save_path, json_data) = args - filebytes = get_html(url, return_type='content', json_headers=json_data['headers']) + if json_data != None: + filebytes = get_html(url, return_type='content', json_headers=json_data['headers']) + else: + filebytes = get_html(url, return_type='content') if isinstance(filebytes, bytes) and len(filebytes): with save_path.open('wb') as fpbyte: if len(filebytes) == fpbyte.write(filebytes): diff --git a/Movie_Data_Capture.py b/Movie_Data_Capture.py index 2b1b37a..d9603ce 100644 --- a/Movie_Data_Capture.py +++ b/Movie_Data_Capture.py @@ -591,6 +591,7 @@ def main(args: tuple) -> Path: print("[!] " + "Mapping Table Download FAILED".center(47)) print("[!] " + "无法连接github".center(47)) print("[!] " + "请过几小时再试试".center(47)) + print("[!]", e) print("[-] " + "------ AUTO EXIT AFTER 30s !!! ------ ".center(47)) time.sleep(30) os._exit(-1)