diff --git a/plugins/alist.py b/plugins/alist.py index c974207..9433cfc 100644 --- a/plugins/alist.py +++ b/plugins/alist.py @@ -67,7 +67,9 @@ class Alist: if match := re.match(r"^(\/[^:]*):(\/[^:]*)$", storage_id): # 存储挂载路径, 夸克根文件夹 storage_mount_path, quark_root_dir = match.group(1), match.group(2) - if not self.get_file_list(storage_mount_path): + file_list = self.get_file_list(storage_mount_path) + if file_list.get("code") != 200: + print(f"Alist刷新: 获取挂载路径失败❌ {file_list.get('message')}") return False, (None, None) # 2. 检查是否数字,调用 Alist API 获取存储信息 elif re.match(r"^\d+$", storage_id): diff --git a/plugins/alist_strm_gen.py b/plugins/alist_strm_gen.py index 0363fbc..28f17a1 100644 --- a/plugins/alist_strm_gen.py +++ b/plugins/alist_strm_gen.py @@ -80,7 +80,9 @@ class Alist_strm_gen: if match := re.match(r"^(\/[^:]*):(\/[^:]*)$", storage_id): # 存储挂载路径, 夸克根文件夹 storage_mount_path, quark_root_dir = match.group(1), match.group(2) - if not self.get_file_list(storage_mount_path): + file_list = self.get_file_list(storage_mount_path) + if file_list.get("code") != 200: + print(f"Alist-Strm生成: 获取挂载路径失败❌ {file_list.get('message')}") return False, (None, None) # 2. 检查是否数字,调用 Alist API 获取存储信息 elif re.match(r"^\d+$", storage_id):