🔨 修改子目录匹配逻辑

This commit is contained in:
Cp0204 2024-04-25 22:33:17 +08:00
parent 38d4503c68
commit 726f8356e0

View File

@ -504,8 +504,8 @@ class Quark:
need_save_list = [] need_save_list = []
# 添加符合的 # 添加符合的
for share_file in share_file_list: for share_file in share_file_list:
if share_file["dir"]: if share_file["dir"] and task.get("update_subdir", False):
pattern, replace = task.get("update_subdir", ""), "" pattern, replace = task["update_subdir"], ""
else: else:
pattern, replace = magic_regex_func(task["pattern"], task["replace"]) pattern, replace = magic_regex_func(task["pattern"], task["replace"])
# 正则文件名匹配 # 正则文件名匹配