opennaslab / kubespider

A global resource download orchestration system, build your home download center.
https://kubespider.netlify.app/
Apache License 2.0
2.01k stars 114 forks source link

关于下载地址为种子时,迅雷:handle_torrent_download,err:[Errno 2] No such file or directory的错误 #529

Closed manduted closed 2 months ago

manduted commented 2 months ago

511 #512 也有提到

顺带参照对比没有问题的0.3版本

日志报错 handle_torrent_download,然后Debug了一下。实际上大概是xunlei_download_provider在种子转磁力时候文件路径的问题

handle_torrent_download的for循环里面, 1

send_torrent_task(self, task: Task)过去,到迅雷provider时,将种子文件转换成磁链,convert_torrent_to_magnet(task.path),结果用的是taks.path,也就是传参传了个 不存在的实际文件位置(也许是好qb分类和修改文件名?我没研究qb那部分,瞎猜的,毕竟实际下载的种子文件是编码的.torrent)

2

3

torrent_file_path应该获得Task.url才对,Task.url才是种子的实际存在目录 /tmp/xxxxxx.torrent

修改为task.url后

4 5 6

能正常torrent文件传递,btbtt12也正常解析...不知道有没有其他问题。我也没用其他的。就没pull,docker也只放在了我的hub上。

richardli1598 commented 2 months ago

可以看下这个PR解决你的问题了吗?https://github.com/opennaslab/kubespider/pull/530

richardli1598 commented 2 months ago

大佬知道最新版本的迅雷镜像哪里下载吗?我最新只找到3.11.2,但是我想默认使用 3.21,就不用配置token了:https://github.com/opennaslab/kubespider/pull/505

richardli1598 commented 2 months ago

根据大佬的提示,我这边查了下之前的定义,应该有task.url, https://github.com/opennaslab/kubespider/pull/532

Thanks a lot!

manduted commented 2 months ago

大佬知道最新版本的迅雷镜像哪里下载吗?我最新只找到3.11.2,但是我想默认使用 3.21,就不用配置token了:#505

有啊 dragonflylee/xunlei:3.21.0 下面这个,这个我不太确定,依稀记得也是3.21.0 。。 kl3x/xunlei:latest

虽然我也在用11.2.。hhhh

manduted commented 2 months ago

根据大佬的提示,我这边查了下之前的定义,应该有task.url, #532

Thanks a lot!

之前迅雷那个判断版本有问题。我提了Issues。已经有人改了合并了。 #522 。看了。pr都没问题。妥妥的。好像docker也更新了。我晚点切库回去看看。