Compare commits

..

No commits in common. "518037cee8e4357ad81b0f1d651ad1e10c188123" and "46ec89d201d92481f58fd39650b757a31a50bc07" have entirely different histories.

2 changed files with 3 additions and 9 deletions

View File

@ -164,9 +164,7 @@ class Alist_sync:
# 获取网盘已有文件
source_dir_list = self.get_path_list(self.source_path)
if not source_dir_list:
print("获取夸克文件列表失败请检查网络或手动刷新alist中的夸克目录")
return 0
if self.tv_mode == 0 or self.tv_mode == "":
self.tv_mode = False
else:
@ -230,10 +228,6 @@ class Alist_sync:
.lower()
)
for target_list in target_dir_list:
if source_list["is_dir"]:
# print(f"跳过目录同步")
skip = True
break
if self.tv_mode:
target_list_filename = (
target_list["name"]

View File

@ -302,11 +302,11 @@ class MagicRename:
def set_dir_file_list(self, file_list, replace):
"""设置目录文件列表"""
if not file_list:
return
self.dir_filename_dict = {}
filename_list = [f["file_name"] for f in file_list if not f["dir"]]
filename_list.sort()
if not filename_list:
return
if match := re.search(r"\{I+\}", replace):
# 由替换式转换匹配式
magic_i = match.group()