mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-13 15:50:45 +08:00
🐛 修复 storage_id_to_path() 未匹配返回值 #43
- 在不支持的驱动情况下,确保返回值为 (False, (None, None)) - 提高代码的健壮性和可读性
This commit is contained in:
parent
92df9239af
commit
749d1b7039
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user