mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-11 22:50:45 +08:00
parent
53a2b04e60
commit
f6b7ecdc83
@ -315,7 +315,9 @@ def get_share_detail():
|
||||
)
|
||||
for share_file in data["list"]:
|
||||
search_pattern = (
|
||||
task.get("update_subdir", "") if share_file["dir"] else pattern
|
||||
task["update_subdir"]
|
||||
if share_file["dir"] and task.get("update_subdir")
|
||||
else pattern
|
||||
)
|
||||
if re.search(search_pattern, share_file["file_name"]):
|
||||
# 文件名重命名,目录不重命名
|
||||
|
||||
@ -875,7 +875,9 @@ class Quark:
|
||||
# 添加符合的
|
||||
for share_file in share_file_list:
|
||||
search_pattern = (
|
||||
task.get("update_subdir", "") if share_file["dir"] else pattern
|
||||
task["update_subdir"]
|
||||
if share_file["dir"] and task.get("update_subdir")
|
||||
else pattern
|
||||
)
|
||||
# 正则文件名匹配
|
||||
if re.search(search_pattern, share_file["file_name"]):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user