mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-11 22:50:45 +08:00
🐛 Aria2插件:修复下载文件为空时报错 #80
This commit is contained in:
parent
cc7603f92b
commit
d2e63b96eb
@ -46,6 +46,9 @@ class Aria2:
|
||||
if not node.data.get("is_dir", True):
|
||||
file_fids.append(node.data.get("fid"))
|
||||
file_paths.append(node.data.get("path"))
|
||||
if not file_fids:
|
||||
print(f"Aria2下载: 没有下载任务,跳过")
|
||||
return
|
||||
download_return, cookie = account.download(file_fids)
|
||||
file_urls = [item["download_url"] for item in download_return["data"]]
|
||||
for index, file_url in enumerate(file_urls):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user