0

有什么方法可以改变Python中libtorrent 库的下载速度吗?

4

1 回答 1

1

您不能“设置”下载速度,但可以限制它。这可以通过使用
torrent_handle::set_download_limit(int limit)来完成

在蟒蛇中:

h = ses.add_torrent(info, "tmp")
h.set_download_limit(2048)

将您的下载速度限制为 2kB/s

于 2014-05-04T19:17:55.350 回答