Compare commits

..

No commits in common. "c20a31773ef92dd9f4f3a4970ae777ac994cef45" and "07df5b6f3dd657055a3387a68588ae6222bddf3a" have entirely different histories.

View File

@ -164,9 +164,7 @@ class Alist_sync:
# 获取网盘已有文件 # 获取网盘已有文件
source_dir_list = self.get_path_list(self.source_path) 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 == "": if self.tv_mode == 0 or self.tv_mode == "":
self.tv_mode = False self.tv_mode = False
else: else:
@ -230,11 +228,11 @@ class Alist_sync:
.lower() .lower()
) )
for target_list in target_dir_list: for target_list in target_dir_list:
if self.tv_mode:
if source_list["is_dir"]: if source_list["is_dir"]:
# print(f"跳过目录同步") # print(f"跳过目录同步")
skip = True skip = True
break break
if self.tv_mode:
target_list_filename = ( target_list_filename = (
target_list["name"] target_list["name"]
.replace(".mp4", "") .replace(".mp4", "")