diff --git a/main.py b/main.py index 7dbf4ba..086d8d2 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import random # config # get_end_date = 'today' -get_end_date = '2023-08-09' +get_end_date = '2023-08-01' # 整理链接格式 diff --git a/req.py b/req.py index 6fce235..ecd3d06 100644 --- a/req.py +++ b/req.py @@ -166,13 +166,13 @@ class ReqAction: if isinstance(temp_path_list, list) and base_path[:-1] not in [_dir['path'] for _dir in temp_path_list]: self.create_dir(base_path) base_path_list = self.get_dir_list(base_path) - if isinstance(base_path_list, list) and save_path not in [_dir['path'] for _dir in base_path_list]: - self.create_dir(save_path) verified_links = self.verify_links(save_link, save_code) if isinstance(verified_links, int): if verified_links == -9: return True, '链接密码错误' if isinstance(verified_links, list): + if isinstance(base_path_list, list) and save_path not in [_dir['path'] for _dir in base_path_list]: + self.create_dir(save_path) result, name = self.transfer_files(verified_links, save_path) if result == 0 or result == 4: return True, name