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

如何发送种子文件? #56

Closed
miRemid opened this issue Mar 2, 2023 · 7 comments · Fixed by #57
Closed

如何发送种子文件? #56

miRemid opened this issue Mar 2, 2023 · 7 comments · Fixed by #57

Comments

@miRemid
Copy link
Collaborator

miRemid commented Mar 2, 2023

从README的过程和个人使用情况来看,只能通过浏览器插件来发送URL形式的文件链接或种子链接给后端,如何发送文件形式的种子文件呢?

@jwcesign
Copy link
Contributor

jwcesign commented Mar 2, 2023

目前还不行,
这个直接打开aria2,把文件贴上去就行,不过既然你能下载种子文件,那下载种子得链接你应该是知道的

@miRemid
Copy link
Collaborator Author

miRemid commented Mar 2, 2023

所以在Provider中里面的添加文件任务目前是无法使用的,我可以这么认为吗?

@abc.abstractmethod
def send_torrent_task(self, torrent_file_path, download_path):
        pass

@jwcesign
Copy link
Contributor

jwcesign commented Mar 2, 2023

这个你发送torrent文件链接,kubespider会下载torrent文件,然后把文件地址作为入参调用这个函数

@jwcesign
Copy link
Contributor

jwcesign commented Mar 2, 2023

所以在Provider中里面的添加文件任务目前是无法使用的,我可以这么认为吗?

@abc.abstractmethod
def send_torrent_task(self, torrent_file_path, download_path):
        pass

这个你看看对接aria2的函数实现就明白了

@jwcesign
Copy link
Contributor

jwcesign commented Mar 2, 2023

可以问下你是想实现什么吗?

@miRemid
Copy link
Collaborator Author

miRemid commented Mar 2, 2023

我现在正把qbittorrent放进去,由于qbittorrent只能下载种子文件或磁力链接不能下载普通的文件,所以我在想怎么利用send_torrent_tasksend_general_task这俩接口

@jwcesign
Copy link
Contributor

jwcesign commented Mar 2, 2023

我现在正把qbittorrent放进去,由于qbittorrent只能下载种子文件或磁力链接不能下载普通的文件,所以我在想怎么利用send_torrent_tasksend_general_task这俩接口

看这个api 除了general,应该都能适配,
https://python-qbittorrent.readthedocs.io/en/latest/intro.html#overview-of-api-methods

可以加下开发者讨论群,后面交流方便点

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 a pull request may close this issue.

2 participants