mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 17:30:43 +08:00
♻️ 增加获取文件列表失败提示
有2个原因会导致代码报错: 1.api刷新的为最底层目录,如果保存的目录被删除且上层目录未刷新时,获取的是假的文件列表,可能会为空,则报错 2.网络不好获取目录失败 增加提示告诉用户原因
This commit is contained in:
parent
5aecad7f03
commit
c20a31773e
@ -164,7 +164,9 @@ 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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user