8000 fix: 修复 alist 获取路径的问题 · TTB-Network/python-openbmclapi@6624e1c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6624e1c

Browse files
committed
fix: 修复 alist 获取路径的问题
1 parent 93bb0ec commit 6624e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/storage/alist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def list_files(self, path: str) -> list[abc.FileInfo]:
157157
}
158158
) as resp:
159159
data = AlistResponse(await resp.json())
160-
for item in (data.data or {}).get("content", []):
160+
for item in (data.data or {}).get("content", []) or []:
161161
if item["is_dir"]:
162162
continue
163163
res.append(abc.FileInfo(

0 commit comments

Comments
 (0)
0