【发布时间】:2021-01-20 13:45:20
【问题描述】:
我的问题是我有太多需要附加的 torrent 文件。我把它们都列在一个列表中。
torrent_list = ['file1.torrent', 'file2.torrent', etc.......]
按文件下载种子:
torrent_file = open('my-torrent-file.torrent', 'rb')
qb.download_from_file(torrent_file)
使用文件下载多个种子:
如果不手动编写它,我无法让它工作,就像示例中显示的那样。 我想从列表中加载它们。有人可以帮忙吗?
torrent_file_list = [open('1.torrent', 'rb'), open('2.torrent', 'rb')]
qb.download_from_file(torrent_file_list)
【问题讨论】:
标签: python