alist icon indicating copy to clipboard operation
alist copied to clipboard

feat(thunderx,pikpak): add offline download support for ThunderX; add ctx to specific PikPak functions

Open nekohy opened this issue 7 months ago • 6 comments

frontend https://github.com/AlistGo/alist-web/pull/280

nekohy avatar May 06 '25 19:05 nekohy

Walkthrough

This PR introduces offline download support for ThunderX and adds context (ctx) to specific PikPak functions. It involves significant changes to the ThunderX driver, including new functions for handling offline downloads, task management, and integration with existing systems.

Changes

Files Summary
drivers/pikpak/driver.go Added context (ctx) to various PikPak functions for better request handling.
drivers/thunderx/driver.go, drivers/thunderx/types.go, drivers/thunderx/util.go Implemented offline download support for ThunderX, including new functions and types for managing tasks and responses.
internal/conf/const.go Added new constant for ThunderX temporary directory.
internal/offline_download/all.go, internal/offline_download/thunderx/thunderx.go, internal/offline_download/thunderx/utils.go Integrated ThunderX into the offline download system with new utilities and initialization logic.
internal/offline_download/tool/add.go, internal/offline_download/tool/download.go Updated tool logic to support ThunderX.
server/handles/offline_download.go, server/router.go Added new API endpoints and handlers for ThunderX configuration and management.

petercat-assistant[bot] avatar May 06 '25 19:05 petercat-assistant[bot]

要不还是参考下我的实现思路吧:https://github.com/ykxVK8yL5L/alist
迅雷X演示视频:https://youtu.be/rnzDfC6omQs

ykxVK8yL5L avatar May 26 '25 12:05 ykxVK8yL5L

要不还是参考下我的实现思路吧:https://github.com/ykxVK8yL5L/alist 迅雷X演示视频:https://youtu.be/rnzDfC6omQs

基于ThunderX的功能写完了啊(还缺什么吗

nekohy avatar May 26 '25 18:05 nekohy

要不还是参考下我的实现思路吧:https://github.com/ykxVK8yL5L/alist 迅雷X演示视频:https://youtu.be/rnzDfC6omQs

基于ThunderX的功能写完了啊(还缺什么吗

我的意思是换下思路 把离线功能的扩展交给driver去处理 这样如果需要扩展只需要driver去实现offline的接口即可 而不是现在这样 需要迅雷x离线了 加个迅雷x的下载工具 扩展性不好 仅供参考😂

ykxVK8yL5L avatar May 26 '25 19:05 ykxVK8yL5L

我是跟随官方架构改的这样,不想大动主线

nekohy avatar May 26 '25 22:05 nekohy

我是跟随官方架构改的这样,不想大动主线

好的 我之前给官方提交过 感觉官方响应太慢 所以就自己搞了 能满足需要就好😊

ykxVK8yL5L avatar May 27 '25 00:05 ykxVK8yL5L