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(offline-download): allow using offline download tools in any storage #7716

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Lanfei
Copy link
Contributor

@Lanfei Lanfei commented Dec 26, 2024

Allow using 115/PikPak/Thunder offline download tools in any storage.
允许在任意存储使用 115/PikPak/迅雷 等离线下载工具。

  • Files will be downloaded directly to the destination dir if using the tool in 115/PikPak/Thunder storage.
  • 如果在 115/PikPak/迅雷 存储中使用离线下载,文件会被直接下载到目标目录。
  • Otherwise, files will be downloaded to a user-configured temp dir, and then transfered to the destination dir.
  • 否则,文件会下载至用户配置的临时目录中,然后转移至目标目录。

@Lanfei
Copy link
Contributor Author

Lanfei commented Dec 26, 2024

Front-end part: AlistGo/alist-web#218

if err != nil {
return errors.Wrapf(err, "failed to get files")
func (t *DownloadTask) Transfer() error {
toolName := t.tool.Name()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你不是把pikpak和thunder的开头字母改成大写了吗?后面判断是不是忘记改了?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

尴尬,漏掉了,已经补上,谢谢提醒。

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.

2 participants