mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 01:10:44 +08:00
⚡️ 无正则时跳过重命名任务
This commit is contained in:
parent
65f9c9669b
commit
a4bd83705f
@ -621,6 +621,8 @@ class Quark:
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def do_rename_task(self, task, subdir_path=""):
|
def do_rename_task(self, task, subdir_path=""):
|
||||||
|
if not task["pattern"] or not task["replace"]:
|
||||||
|
return 0
|
||||||
savepath = re.sub(r"/{2,}", "/", f"/{task['savepath']}{subdir_path}")
|
savepath = re.sub(r"/{2,}", "/", f"/{task['savepath']}{subdir_path}")
|
||||||
if not self.savepath_fid.get(savepath):
|
if not self.savepath_fid.get(savepath):
|
||||||
self.savepath_fid[savepath] = self.get_fids([savepath])[0]["fid"]
|
self.savepath_fid[savepath] = self.get_fids([savepath])[0]["fid"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user