Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aria2): multiple files/folder download #88

Merged
merged 6 commits into from
May 27, 2023
Merged

Conversation

orangejx
Copy link
Contributor

@orangejx orangejx commented May 19, 2023

本次更新:

重新启用 Aria2 Dir 选项, 当用户发送文件下载任务到 Aria2 时, 自动使用 Aria2 Dir 配置.

发送到 Aria2任务中, 当用户选择的选项为文件夹时, 自动读取文件夹内的内容及目录结构, 发送到 Aria2 时, 自动按照读取到的目录结构进行保存.

  • 允许用户在选择文件夹并发送到 Aria2 任务.

@netlify
Copy link

netlify bot commented May 19, 2023

Deploy Preview for alist-web ready!

Name Link
🔨 Latest commit 2baca17
🔍 Latest deploy log https://app.netlify.com/sites/alist-web/deploys/6472140f2904db000818caeb
😎 Deploy Preview https://deploy-preview-88--alist-web.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@anwen-anyi
Copy link
Contributor

anwen-anyi commented May 20, 2023

好用 ❤️ ❤️ ❤️ (此存储来自本地存储,网盘暂未测试)
image

@orangejx
Copy link
Contributor Author

好用 ❤️ ❤️ ❤️ (此存储来自本地存储,网盘暂未测试)

image

多谢dalao帮忙测试啦😁

@anwen-anyi
Copy link
Contributor

哪个下载目录感觉还是多余的选择QAQ
直接让 Aria2的下载目录接管就行
(和之前一样就可以QAQ)

@orangejx
Copy link
Contributor Author

哪个下载目录感觉还是多余的选择QAQ

直接让 Aria2的下载目录接管就行

(和之前一样就可以QAQ)

好嘞,等会儿睡醒之后我改一下😄

@Jerry12228
Copy link

Jerry12228 commented May 20, 2023

使用阿里云盘open驱动,下载后大量文件丢失,文件内容为请求过多。。。
(下图右侧为使用aria2下载,左侧为源目录)
{"code":500,"message":"failed link: failed get link: TooManyRequests:请求id","data":null}
image

@anwen-anyi
Copy link
Contributor

anwen-anyi commented May 20, 2023

使用阿里云盘open驱动,下载后大量文件丢失,文件内容为请求过多。。。 (下图右侧为使用aria2下载,左侧为源目录) {"code":500,"message":"failed link: failed get link: TooManyRequests:请求id","data":null} image

阿里无法批量下载 限制1QPS/S 和 Aria2 无关


限流处理

为确保所有用户的使用体验及保护云盘系统整体性能,云盘会对下面 API 进行限流:

API 用户级限流
/adrive/v1.0/openFile/list 4 QPS
/adrive/v1.0/openFile/getDownloadUrl 1 QPS

遇到限流时 API 会返回 429 HTTP 状态码,APP 应等待 1 秒后再请求 API,并给予用户友好提示,比如 loading。 批量下载建议排队下载。

@Jerry12228
Copy link

嗯,如果在使用该功能时可以像打包下载一样弹出一个面板来显示已经添加的项目,然后由其控制向aria2发送的间隔,是否可以起到控制请求频率在限制之内的效果?(面板用于提醒用户所有文件是否已经添加完毕)

@anwen-anyi
Copy link
Contributor

嗯,如果在使用该功能时可以像打包下载一样弹出一个面板来显示已经添加的项目,然后由其控制向aria2发送的间隔,是否可以起到控制请求频率在限制之内的效果?(面板用于提醒用户所有文件是否已经添加完毕)

不是很清楚了这个

…erver configuration info to replace it, and remove packages & variables that are not being used.
@orangejx
Copy link
Contributor Author

哪个下载目录感觉还是多余的选择QAQ 直接让 Aria2的下载目录接管就行 (和之前一样就可以QAQ)

改好啦~

@xhofe xhofe changed the title feat(home: send to aria2): allows users to send a batch of files from a folder to Aria2 task feat(aria2): multiple files/folder download May 21, 2023
@xhofe xhofe merged commit 9e072ce into AlistGo:main May 27, 2023
@ypq123456789
Copy link

为啥我还是不行啊大佬们

@haohao232323
Copy link

为啥我还是不行啊大佬们

大概是有些网盘不支持吧,好像无解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants