🐛 修复 storage_id_to_path() 未匹配返回值 #43

- 在不支持的驱动情况下,确保返回值为 (False, (None, None))
- 提高代码的健壮性和可读性
This commit is contained in:
Cp0204 2024-11-27 16:57:12 +08:00
parent 92df9239af
commit 749d1b7039

View File

@ -94,6 +94,7 @@ class Alist_strm_gen:
return True, (storage_mount_path, quark_root_dir)
else:
print(f"Alist刷新: 不支持[{storage_info['driver']}]驱动 ❌")
return False, (None, None)
def get_storage_info(self, storage_id):
url = f"{self.url}/api/admin/storage/get"